Given the expression Con("elevm"==0 | "elevn" > 100, -99), what will it return if either condition is true?

Study for the GIS Professional Certification Exam. Prepare with flashcards and multiple-choice questions, each question includes hints and explanations. Get ready for your certification!

When evaluating the expression Con("elevm"==0 | "elevn" > 100, -99), it's important to understand how the Con function operates in conditional statements. The Con function is a conditional or conditional-value function that checks the specified conditions and returns a particular value if those conditions evaluate to true.

In this case, if either the condition of "elevm" being equal to 0 or "elevn" being greater than 100 is true, the function will return -99. This is because the second argument, -99, serves as the value to be returned when the condition is met.

This behavior is typical for conditional functions, where the first argument consists of a logical condition that, if true, determines which value (in this scenario, -99) is returned. Therefore, the manner in which the Con function interprets the logical condition directly leads to -99 being returned when either condition holds true.

This reinforces the understanding of how such functions operate within GIS and similar programming environments, focusing on conditional evaluations. In this case, the correct answer reflects the intended output of the Con function based on the conditions presented.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy