As you can see in the picture, I created an input called “typ”. How do I use it with “if” in my code? Also, I’d like the documentation link for the language , and I want to know all the operators that I can use with constants, such as if and while in lolicode.
when i wrote :
IF @typ == "d"
error : [IDLE] CompilationErrorException: (54,5): error CS0103: The name 'typ' does not exist in the current context
when :
IF INPUT @typ EqualTo "d"
error : [IDLE] CompilationErrorException: (54,11): error CS1026: ) expected
when :
IF INPUT <typ> == "d"
error : [IDLE] CompilationErrorException: (54,11): error CS0246: The type or namespace name 'typ' could not be found (are you missing a using directive or an assembly reference?)
[/grid]