MapInfo Pro Developers User Group

Welcome to the MapInfo Pro Developers community!  We are a group dedicated to the discussion and understanding of MapBasic and .Net MapInfoPro AddIn development. Bring your questions and ideas here. This group includes several members of the Pro development team from around the world.

Please feel free to start a discussion in the discussion tab or join in a conversation.

Product Information  Ideas Portal  MapInfo Community Downloads

Discussions

Members

Resources

Events

 View Only

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

    Employee
    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.