Code: Select all
if (VERIFY_FIRST_NAME(wholename))
{msgbox, the verified first name is %v%
}
I'm trying to avoid doing this:
Code: Select all
v:=VERIFY_FIRST_NAME(wholename))
if (v)
{msgbox, the verified first name is %v%
}
Code: Select all
if (VERIFY_FIRST_NAME(wholename))
{msgbox, the verified first name is %v%
}
Code: Select all
v:=VERIFY_FIRST_NAME(wholename))
if (v)
{msgbox, the verified first name is %v%
}
Code: Select all
v := "ahk"
if (v = "ahk")
{msgbox, the verified first name is %v%
}
Code: Select all
If ((v := VERIFY_FIRST_NAME(wholename)) > "")
MsgBox, The verified first name is %v%.
VERIFY_FIRST_NAME(wholename) {
Return "Jim"
}
Code: Select all
If ((v := VERIFY_FIRST_NAME(wholename)) > "")
if (v := VERIFY_FIRST_NAME("wholename")) { is slightly shorter if your function can return false