Your Products have been synced, click here to refresh
I got it thanks. It was simple syntax on my part.
IF/C1.INPUT=="YES" <----<<< proper syntax
END/IF <----<<< put this where you want the program to pick up and start running again.
If C1 = "NO" then it continues to run as if the conditional statement wasn't there.
Matt, I wanted to see if I could use YES/NO and it works quite well. I don't want people to have to think about these programs. I want them to be so easy that anyones monkey can run it without having to slow down and think lets see 1 = yes so that means I need a no and thats a 2.. etc...
Bill
Nope no spelling either.. The YES/NO comment starts with YES NO and CANCEL buttons and it's a clicker ONLY; no typing at all. Thats why I wanted to use this one.
Bill
Thats whats cool about this Craig. You don't even need a lable. If the condition is false, it goes directly to the END/IF and continues from there. If its ture it runs the code that you would skip if false. It took exactly 3 lines to make this work, the comment, the condition, and the end/if.
Bill
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |