Source language: Translate to:

WhileEx?

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

WhileEx?

Postby Dudus » Tue Dec 12, 2017 7:39 am

I have te following code, what is the problem?

WhileEx "[Reg1]<[#32] or [Reg2]<[#32]"
AlertBox "Error" "Please fill out both of the Input fields"
Else
AlertBox "OK!" "It's okay!"
EndWhile

Beacues no OK message even Reg1 and Reg2 are filled out.
Thnx
D
User avatar
Dudus
 
Posts: 118
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest

Re: WhileEx?

Postby virger » Tue Dec 12, 2017 8:54 am

WhileEx "[Reg1]<[#32] or [Reg2]<[#32]"
AlertBox "Error" "Please fill out both of the Input fields"
Else
AlertBox "OK!" "It's okay!"
EndWhile

"ELSE" IT'S NOT VALID COMMAND IN 'WHILEEX' LOOK HELP
USE "IFEX"
Code: Select all
IfEx "[Reg1]<[#32] or [Reg2]<[#32]"
AlertBox "Error" "Please fill out both of the Input fields"
Else
AlertBox "OK!" "It's okay!"
EndIf
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 534
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: WhileEx?

Postby Danito » Tue Dec 12, 2017 2:00 pm

Code: Select all
IfEx "[Reg1]<[#32][#32] or [Reg2]<[#32][#32]"
AlertBox "Error" "Please fill out both of the Input fields"
Else
AlertBox "OK!" "It's okay!"
EndIf
User avatar
Danito
 
Posts: 56
Joined: Thu Mar 11, 2010 7:07 pm

Re: WhileEx?

Postby Dudus » Tue Dec 12, 2017 11:18 pm

Thank you, works gerat. And thank you for the explanation :)
User avatar
Dudus
 
Posts: 118
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest