Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/19 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

Switch

The switch block help conditionally renders text while the specified expression remains true. Include an optional else tag as needed:

The Contact will display the appropriate text depending on the value of State.