Codebase list libmawk / upstream/1.0.2 scconfig / src / tmpasm / regression / Tutor11_missing.gasm
upstream/1.0.2

Tree @upstream/1.0.2 (Download .tar.gz)

Tutor11_missing.gasm @upstream/1.0.2raw · history · blame

# conditional/safe variable reference: name prefixed by ?
# if the variable does not exist, no error is thrown but empty
# string is returned

if ?a then
	print {empty}
else
	print {not empty}
end

put b ?a