You cannot use if…then statements inside expressions. Use the ternary operator (condition ? valueIfTrue : valueIfFalse) to select between two values inline. This is useful whenever an expression is required rather than a statement.
Sources
1 checkedHow we cover tool news: Create With's tool desk drafts these reports with AI from the sources listed above and checks them against those sources before publishing.







