So, I'm wondering/asking; Is it possible to do an If-Statement in APL? If so how?
Here's my code
'Please enter a number to count to: '
number ←⎕
⍳number
How do I get an if-statement to where if the user inputs a number over 100 it will print out "too high" and end; or if it's 100 or under then it will just continue?
Thanks!
Depends on the dialect you're using. Some APL-Implementations support control-strucures, so you could write something like
In "tradtional APL" you would probably do something like