RosettaCodeData/Task/Empty-string/AutoHotkey/empty-string.ahk
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

20 lines
403 B
AutoHotkey

;; Traditional
; Assign an empty string:
var =
; Check that a string is empty:
If var =
MsgBox the var is empty
; Check that a string is not empty
If var !=
Msgbox the var is not empty
;; Expression mode:
; Assign an empty string:
var := ""
; Check that a string is empty:
If (var = "")
MsgBox the var is empty
; Check that a string is not empty
If (var != "")
Msgbox the var is not empty