I'm trying to set a condition for evaluating the values of several text-lists. This works, using a SWITCH:
options: ["" "" "" ""]
view layout [
text-list "one" "two" "three" "four" [poke options 1 value]
button "test" [switch/default options/1 [
"one" [alert "first"]
"two" [alert "second"]
"three" [alert "third"]
"four" [alert "fourth"]
] [alert "pick a number!"]
]
]
But this one doesn't work for some reason:
options: ["" "" "" ""]
view layout [
text-list "one" "two" "three" "four" [poke options 1 value]
button "test" [
either options/1 <> 0 [
alert "you have picked a number!"
][alert "pick a number!"]
]
]
The EITHER evaluation always executes the first block if I put options/1 <> 0
as the condition, and always executes the second block if I put options/1 = 0
as the condition, which is obviously not how it should work at all.
What's the matter here?