- Posts: 84
- Thank you received: 0
using the o conditional statement " if"
8 years 7 months ago #107116
by jensor
using the o conditional statement " if" was created by jensor
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?
o100 IF [#5 EQ 12]
o200 IF [#8 EQ 1]
code
o200 ENDIF
code
o100 ENDIF
Is it possible to nest conditionals?
Please Log in to join the conversation.
8 years 7 months ago #107119
by andypugh
Replied by andypugh on topic using the o conditional statement " if"
Yes, it is possible and your code ought to work.
What error do you see?
What error do you see?
Please Log in to join the conversation.
8 years 7 months ago #107201
by jensor
Replied by jensor on topic using the o conditional statement " if"
My mistake Error was: bad '[' character used
Sorry, But thanks for your response.
Sorry, But thanks for your response.
Please Log in to join the conversation.
8 years 7 months ago #107300
by andypugh
Replied by andypugh on topic using the o conditional statement " if"
Does it say what line the error is on?
Please Log in to join the conversation.
8 years 7 months ago #107340
by jensor
Replied by jensor on 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.
[X#2/2] Y[#2/2]
Seems like it is so difficult to spot programming errors.
Please Log in to join the conversation.
8 years 7 months ago #107341
by andypugh
Replied by andypugh on 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.
Please Log in to join the conversation.
Time to create page: 0.085 seconds
