Source language: Translate to:

input box

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

input box

Postby sassiue » Thu Sep 11, 2014 11:05 pm

Can you tell me why this does not work
Page 1
page1 > Page Enter
+ InputBox "welcome" "Enter Your Name" "[1]"......................................Line 1...Parent enters childs name
+ GotoNextPage

Page 2
page 2 > Page Enter
+ InputBox "Welcome" "Enter your name" "[2]"................................... child enters their name
+ If "[2]" "=" "1" ......................................................................
- GotoNextPage........................................................................................Neobook Debugger shows the
+ Else 3rd line as an error
+ AlertBox "Error!" "Wrong Name Try Again.".......................................program does not go to next page it
displays the error message
+ EndIf


...............................................................................................................................................................................................................................
I used this example from Neobook help.
Example: My verification concept: To Teach child to write their name
InputBox "Welcome" "Enter your access code" "[Code]" parent enters the correct spelling on page1 and the child must If "[Code]" "=" "JB5276H" must enter the name correctly on page 2 to enter book
GotoPage "Start"
Else
AlertBox "Sorry" "That’s not a valid access code."
Exit "" ""
EndIf
sassiue
 
Posts: 1
Joined: Wed Sep 10, 2014 5:57 pm

Re: input box

Postby Tony Kroos » Thu Sep 11, 2014 11:26 pm

Code: Select all
If "[2]" "=" "1"

If "[2]" "=" "[1]" <- you need this

you equate the expression to 1, not [1] variable. Enter number 1 as a name and it works )
Tony Kroos
 
Posts: 402
Joined: Thu Oct 15, 2009 3:43 pm


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 3 guests