mirror of
https://github.com/sagiegurari/duckscript
synced 2024-10-04 15:09:08 +00:00
66 lines
960 B
Plaintext
66 lines
960 B
Plaintext
|
|
if true
|
|
echo in if as value
|
|
end_if
|
|
|
|
if false
|
|
echo should not be here
|
|
end_if
|
|
|
|
if not false
|
|
echo in if as value with not condition
|
|
end_if
|
|
|
|
if set true
|
|
echo in if as command
|
|
end_if
|
|
|
|
if set false
|
|
echo should not be here
|
|
else
|
|
echo in else
|
|
end_if
|
|
|
|
if set false
|
|
echo should not be here
|
|
elseif set true
|
|
echo in else if
|
|
else
|
|
echo should not be here
|
|
end_if
|
|
|
|
if set false
|
|
echo should not be here
|
|
elseif set true
|
|
echo in else if but not done yet
|
|
|
|
if set true
|
|
echo nested if
|
|
end_if
|
|
else
|
|
echo should not be here
|
|
end_if
|
|
|
|
value = set false
|
|
if ${value}
|
|
echo should not be here
|
|
elseif true
|
|
echo in else if but not done yet
|
|
|
|
value = set true
|
|
|
|
if not false
|
|
echo nested if
|
|
|
|
value = set "some text"
|
|
|
|
if starts_with ${value} "some"
|
|
echo after command
|
|
else
|
|
echo should not be here
|
|
end_if
|
|
end_if
|
|
else
|
|
echo should not be here
|
|
end_if
|