10 lines
355 B
Plaintext
10 lines
355 B
Plaintext
# Demonstrate how to assign an empty string to a variable.
|
|
text sampleA = Text.EMPTY
|
|
text sampleB = "hello world"
|
|
text sampleC = ""
|
|
List samples = text[sampleA, sampleB, sampleC]
|
|
for each text sample in samples
|
|
# Demonstrate how to check that a string is empty.
|
|
writeLine("Is '" + sample + "' empty? " + when(sample.isEmpty(), "Yes", "No") + ".")
|
|
end
|