label in conditions (if, ...)

Got a problem you cannot solve? Try here.
Post Reply
christ23
Posts: 82
Joined: Mon Jan 16, 2012 4:51 am

label in conditions (if, ...)

Post by christ23 »

Hello,

why is

Code: Select all

label:myLabel
not allowed inside an if/else/end block?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: label in conditions (if, ...)

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
christ23
Posts: 82
Joined: Mon Jan 16, 2012 4:51 am

Re: label in conditions (if, ...)

Post by christ23 »

Dear Francesco,

what do you mean with
Only conditional compilation is allowed with label.
?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: label in conditions (if, ...)

Post by FrancescoT »

Dear christ23,

I ment;

Code: Select all

[compiler if Variable MYCOMVAR Equals TRUE]
label: MyLabel
[compiler end]
Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply