I have a text bound to a dynamic variable, but I’d like to display “Hello M. Anonymous” if the variable is empty.
How would I do that?
There are several ways of doing this. The less practical one would be to use If templates.
The smarter way is to use a computed variable.
Just create a new computed variable with the name displayName and this logic:
If name = “Bond”, displayName = “Bond”
If name = “”, displayName = “Anonymous”
So you’ll just have to use displayName on the text!
