BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Scripts
 Imbricated #IF#

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
aragorn006 Posted - 04 Dec 2006 : 18:37:12
Hi Alessio,

I've big troubles with Conditionnal Statements!
If #IF# are imbricated, the #ENDIF# taken is not the right one!!!

Imagine that code:

0 #PUT#=1#13#
1 #IF# #13#==#00#
2 #IF# #14#==#00#
3 #WRITETITLELIST#=#22# ---> #21#
4 #ENDIF#
5 #IF# #14#==#01#
6 #WRITETITLELIST#=#22# ---> #21# (#24#)
7 #ENDIF#
8 #ENDIF#
9 #IF# #13#==#01#

Test in "line 1" is FALSE, so we can imagine that the next
instruction will be "line 9".
Not at all!!! The next instruction is "line 5".
Surprise....
May be you should add a counter,
incremented for each #IF#
decremented for each #ENDIF#

Thanks,
Leretour.
2   L A T E S T    R E P L I E S    (Newest First)
Alessio Viti Posted - 04 Dec 2006 : 21:12:53
Hi Leretour,

I am sorry, but at this time the engine cannot handle imbricated conditional statement. A workaround is to use GOTO instructions.

When I will have some free time I will try to fix this.

Thank you,

Alessio
aragorn006 Posted - 04 Dec 2006 : 18:39:43
Best with indentation (editing message is not working)


0        #PUT#=1#13#
1        #IF# #13#==#00#
2            #IF# #14#==#00#
3                #WRITETITLELIST#=#22#           ---> #21#
4            #ENDIF#
5            #IF# #14#==#01#
6                #WRITETITLELIST#=#22#           ---> #21#    (#24#)
7            #ENDIF#
8        #ENDIF#
9        #IF# #13#==#01#

BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.06 sec. Powered By: Snitz Forums 2000 Version 3.4.07