Tuesday, 27 April 2010 12:48
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)
ThisVar:=1
Else
ThisVar:=2
Converted to Ternary this would look like:
ThisVar:=(ThisCondition = true) ? 1 : 2I'll add as there are a whole bunch of methods using the Ternary Operator in AutoHotkey (discussed on http://www.autohotkey.com/forum/topic29752.html) which I'll put in soon. I just needed something on my site now as I find myself looking for this bit of info every now and again.
| < Prev |
|---|


