BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Scripts
 Imbricated #IF#
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

aragorn006
Starting Member

5 Posts

Posted - 04 Dec 2006 :  18:37:12  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

aragorn006
Starting Member

5 Posts

Posted - 04 Dec 2006 :  18:39:43  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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#
Go to Top of Page

Alessio Viti
Forum Admin

Italy
9171 Posts

Posted - 04 Dec 2006 :  21:12:53  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.12 sec. Powered By: Snitz Forums 2000 Version 3.4.07