[SOLVED] If statement with Lever data

Discussion in 'Plugin Development' started by thekris1234, Jul 19, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    THEK

    Hi,

    At the moment I have a simple function that toggles levers. How would I use an if statement to check if the lever is already on so I can return a different message?

    Don't worry. I found out I can just use the isPowered() event on the same block.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
Thread Status:
Not open for further replies.

Share This Page