Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

IF statement not working

#1
Hello, I'm trying to write an if statement, however as you can see (left) it runs even though if 1==0. I've tried with a station I found online (right) and it works as intended. I wonder if I am missing an extra step or something?


Attached Files Thumbnail(s)
   
#2
You should enable the option Enable flow control statements with your project to be able to simulate if and while statements with your programs generated using the UI:
  1. Right click the root of your station
  2. Select Station parameters
  3. Check the option Enable flow control statements
#3
(11-30-2023, 08:38 AM)Albert Wrote: You should enable the option Enable flow control statements with your project to be able to simulate if and while statements with your programs generated using the UI:
  1. Right click the root of your station
  2. Select Station parameters
  3. Check the option Enable flow control statements

It worked perfectly! Thank you.
  




Users browsing this thread:
1 Guest(s)