-- edit xTalk in this box. answer3 + 7 * 9 && "is as good as" && three plus seven times nine ask"If x squared is" && quote & 3.1415^2 & quote & comma && "then x = " with "pi" thisline's bad xtalk so it's just skipped get the result put"Unanswered questions count against your score."into importantMessage if it is empty then answer importantmessage elseif it is "pi"thenanswer"Pi is correct" elseanswer it && "is incorrect."
give me a little help
Maintain selection
Maintain coloring
Output
Debug
Commands: answer, ask [with], get, if then [else], put, put into
Numbers: digits [.digits]
Strings: " something "
Numeric operators: +, -, *, /, ^ and their written forms
String operators: &, &&, is, is not
Literals: quote, comma, empty, zero through ten, true, false
Variables: it, the result, user variables
Comments: -- like this
Bad input: marked with red text
Future plans: true colorized/indenting editing
// edit xTalk in this box. alert( (new String((new String((3 +(7 *9 )))+" "+"is as good as"))+" "+(3+(7*9))) ); the_result_var
= window.prompt( (new String((new String((new String((new String((new
String("If x squared is")+" "+"\""))+Math.pow(3.1415,2
)))+"\""))+","))+" "+"then x = "),"pi" ); alert("sending user message this"); it_var = the_result_var; user_variable_importantmessage = "Unanswered questions count against your score."; if ((it_var==null)) {
alert( user_variable_importantmessage ); } else { if ((it_var=="pi")) { alert( "Pi is correct" ); } else { alert( (new String(it_var)+" "+"is incorrect.") ); } }