using the o conditional statement " if"

More
08 Mar 2018 14:29 - 08 Mar 2018 14:32 #107116 by jensor
jensor created the topic: using the o conditional statement " if"
I haven't been able to nest the conditional "if" command such as:

o100 IF [#5 EQ 12]
o200 IF [#8 EQ 1]
code
o200 ENDIF
code
o100 ENDIF

Is it possible to nest conditionals?
Last Edit: 08 Mar 2018 14:32 by jensor.
More
08 Mar 2018 16:31 #107119 by andypugh
andypugh replied the topic: using the o conditional statement " if"
Yes, it is possible and your code ought to work.

What error do you see?
More
10 Mar 2018 22:38 #107201 by jensor
jensor replied the topic: using the o conditional statement " if"
My mistake Error was: bad '[' character used

Sorry, But thanks for your response.
More
13 Mar 2018 21:35 #107300 by andypugh
andypugh replied the topic: using the o conditional statement " if"
Does it say what line the error is on?
More
14 Mar 2018 10:51 #107340 by jensor
jensor replied the topic: using the o conditional statement " if"
Pretty obvious for the error now isn't it.

[X#2/2] Y[#2/2]

Seems like it is so difficult to spot programming errors.
More
14 Mar 2018 11:01 #107341 by andypugh
andypugh replied the topic: using the o conditional statement " if"
I was really just checking that the problem was solved. I had assumed that it was, but on re-reading the post it wasn't 100% clear.
Moderators: Rick G
Time to create page: 0.133 seconds
Powered by Kunena Forum