Page 1 of 1

How to use "Else" correctly ?

PostPosted: Sat Aug 27, 2016 10:06 am
by rcmedy2
Hello everyone,
I m quite beginning using Else condition, so not sure how to use it correctly.
Here is what i am doing :

This is not working (in fact working if there is only one condition above, ex: CurObjet=151)

I would like Else to run when conditions CurObjet =151 and CurObjet=12 not true

Image

I am missing something but don't know what. Does Else only works if just one condition above ?

Thank you

Re: How to use "Else" correctly ?

PostPosted: Sat Aug 27, 2016 10:21 am
by TwinBlazar
That else there only works when CurObjet is not 151 because it is only followed by that CurObjet = 151 clause.

To do what u want, add another else at the CurObjet = 151, so

CurObjet = 12
...
else
CurObjet = 151
...
else
...

Re: How to use "Else" correctly ?

PostPosted: Sat Aug 27, 2016 10:27 am
by rcmedy2
I see. Thank you @TwinBlazar