
-----------------------------------
Angel
Sun Jan 04, 2004 6:52 pm

Operands of comparison
-----------------------------------
I'm having a problem with a program I'm writing, and there's something wrong with the operands of comparison:

put ""
        put "Question 10:"
        put ""
        put "Mila Kunis, the star of the hit TV show, That 70's Show and the star of American Psycho 2 was born in:"
        put ""
        put "1) Portugal"
        put "2) Ukraine"
        put "3) Austria"
        put ""
        put "Please enter the number of your selection:  " ..
        get questions1 (3)
        if questions1 (3) > 3 or questions1 (3) = 0 then
            put "This is not a choice."
            put "Please select another choice:  " ..
            loop % Will rerun the program when the user chooses "label"
                get questions1 (3)
                exit when questions1 (3) => 1 or questions1 (3) =< 3
                put "Please select another choice:  " ..
            end loop
        end if

This is an example code that I am using. When I try to run the program, it highlights the following:

exit when questions1 (3) => 1 or questions1 (3) =< 3

It says that there's a syntax error at '0 and answer=1 and questions1(3)