-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using special argv vector in IF control flow statement returns error #8
Comments
Hi there! That's the intended behavior. Argv is a TEXT vector, so you should first store the value in a NUMBER variable, thus converting it to a NUMBER, and then use it in the IF. |
Hi, thank you for your reply. I don't think that the documentation makes that clear - it may be worth amending the documentation with a note on correct usage of |
Hi, thank you! It's noted here: http:https://ldpl.lartu.net/reference/#cliargs. |
If I understand you correctly the issue in my code wasn't using That does make sense and the documentation as a whole does describe type conversion very well. I figured out the issue almost as soon as the error returned - I look forward to better errors ;) |
Given the following code:
I get the
Error: Malformed statement
error for line 14 beingIF argv:i IS LESS THAN local.min THEN
.If I assign
argv:i
to a variable it works:Is this a bug or a feature?
The text was updated successfully, but these errors were encountered: