Check current MD version for compatibility reasons (update)

Dm114

Well-known member
An Action block to check whether current MD version is compatible with minimum requirements of the calling macro.

Just add the 2 Action lines* at the top of your shared macros to be sure users will always be able to run your macros safely, without bugs due to not implemented functionalities on their devices.

INPUT variable:
• MINver: string variable or constant containing the minimum required version # (with major[.minor[.revision]] numbers)

OUTPUT variable:
• OUTver : string variable returning:
- the minimum version # if current MD version is same or higher
- empty if current MD version # is lower than the required one

*: The 2 Action lines to add at the top of the calling macro are:
- Action block call with its 2 IN/OUT parameters
- Cancel macro action with Constraint depending on the returned value of "OUTver"

Enjoy!

 
Top