DB2 graphic  QMF Version 8

Writing an If() statement

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.

Note: There are several types of If() functions, depending on the data type of the conditions specified. When you review function entries in the Function Reference in QMF Visionary Studio online help, look for the If() functions under data type, such as BooleanIf().


Go to the previous page Go to the next page

Downloads | Library | Support | Support Policy | Terms of use | Feedback
Copyright IBM Corporation 1982,2004 Copyright IBM Corporation 1982, 2004
timestamp Last updated: March, 2004