You can use an If() function to create a binary property value. For example, if you want to display the object as blue if the condition specified is met and yellow if it is not met, you might write the following expression:
Color =If(S_terrain="water",Blue,Yellow)
In this example, the condition of the object is based on a scene parameter, S_terrain. The object might be a polygon in a map layout or a data symbol shown on a chart. If the value of the scene parameter is water, the color of the object is blue. Otherwise, the color is yellow.
You can specify different conditions for the If() function, such as a column value or a numerical threshold.