Consider the following fragment of code:
: append "It's a wooden door that is currently ";
: if (is_door_open) {
: append "open.";
}
: else {
: append "closed.";
}
: if (is_lock_broken) {
: append " The lock is broken.";
}
: print "";
Is it possible to do something like this, except building up a string, rather than printing directly to screen?