I know that in JavaScript you can do:
var oneOrTheOther = someOtherVar || \"these are not the droids you are looking for...\";
where the va
&& is sometimes called a guard operator.
&&
variable = indicator && value
it can be used to set the value only if the indicator is truthy.