the :if statement

Let it all hang out

the :if statement

PostPosted by stu@cs.uml.edu » Tue Mar 01, 2016 8:15 pm

It appears, contra the documentation, that I can't have more than one :elseif in an :if statement. The little test function below gives me a syntax error on the second :elseif. Am I doing something stupid here?

test n
:if n=1
⎕←'1'
:elseif n=2
⎕←'2'
:elseif n=3
⎕←'3'
:else
⎕←'none'
:endif
stu@cs.uml.edu
 
Posts: 7
Joined: Sat Dec 26, 2015 4:06 pm

Re: the :if statement

PostPosted by stu@cs.uml.edu » Fri Mar 11, 2016 12:51 pm

See the nice discussion by Robert Wallick on the bug reports group,
stu@cs.uml.edu
 
Posts: 7
Joined: Sat Dec 26, 2015 4:06 pm


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron