I was wondering if there is a clearer statement then
if not attached foo then
create foo
end
if attached foo as l_foo then
l_foo.bark
end
as
if not attached foo then
create foo
foo.bark
else
foo.bark
end
would repeat the foo.bark
and obviously I want to avoid it... and even the last statement won't compile with void-safety as foo on else could be void...