RosettaCodeData/Task/Short-circuit-evaluation/AutoHotkey/short-circuit-evaluation.ahk
2023-07-01 13:44:08 -04:00

16 lines
191 B
AutoHotkey

i = 1
j = 1
x := a(i) and b(j)
y := a(i) or b(j)
a(p)
{
MsgBox, a() was called with the parameter "%p%".
Return, p
}
b(p)
{
MsgBox, b() was called with the parameter "%p%".
Return, p
}