on-internet
← Community

AutoHotkey syntax is malfunctioning regarding usage of curly brackets { & } within functions

Stack Overflow ·

I can't get anything inside of a function to ever work? This is regarding flow control statements IF, FOR, etc, NOT with expression syntax as the object literal operator, that works fine but it won't let me use nested if statements even? Here is what I mean: I will mark in BOLD the brackets that it flags as syntax errors when I try to run my script: FunctionName(p1, p2, p3) { If (in-expression) { If (in-expression) out-expression If (in-expression) out-expression } Else { out-statement-1 out-statement-2 } Return "!!! Stupid AHK !!!" }

Comments

Sign in or sign up to comment and upvote.

No comments yet.