MapInfo Pro Developers User Group

Two useful conditional MapBasic functions that can be used in MapInfo Pro

  • 1.  Two useful conditional MapBasic functions that can be used in MapInfo Pro

    Posted 08-24-2018 07:30

    With MapBasic 17.0 wee added a number of useful new features and functions. Some of these are also very useful to users using MapInfo Pro without any knowledge of MapBasic.

    Especially two functions are very useful when it comes to presentation and also visualisation. And I'm sure they can also be used in other places like data processing etc.

    The two functions are IIf() and Cond().

    The both take an expression as input and a number of possible return values depending on the the result of the expression.

    IIf() is good for picking one of two options where Cond() makes it possible to pick between multiple options.

    You can read more about these two functions in these two articles here on Li360:

     

    We have only listed a few use cases for these two functions. I know there are a lot of additional use cases. Feel free to share how you want to take advantage of these functions in your daily work.