Page 1 of 1
label in conditions (if, ...)
Posted: Wed Oct 17, 2012 9:46 am
by christ23
Hello,
why is
not allowed inside an if/else/end block?
Re: label in conditions (if, ...)
Posted: Wed Oct 17, 2012 11:03 am
by FrancescoT
Dear christ23,
I suppose because the GOTO statement requires to have access to Label declaration always and this behaviour prevents possible errors.
Only conditional compilation is allowed with label.
Regards
Re: label in conditions (if, ...)
Posted: Thu Oct 18, 2012 2:12 am
by christ23
Dear Francesco,
what do you mean with
Only conditional compilation is allowed with label.
?
Re: label in conditions (if, ...)
Posted: Thu Oct 18, 2012 8:02 am
by FrancescoT
Dear christ23,
I ment;
Code: Select all
[compiler if Variable MYCOMVAR Equals TRUE]
label: MyLabel
[compiler end]
Regards