Last Updated on Wednesday, 08 September 2010
Just a quick note for the moment on how to use ternary operators in AutoHotkey. A ternary operator for those who are unfamiliar with this is an "If...Then...Else..." statement written in a small amount of code, usually on one line, and exists in most programming languages.
For Example, the statement:
- If (ThisCondition = true)
Converted to Ternary this would look like:
- ThisVar:=(ThisCondition = true) ? 1 : 2