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 : optional* string variable containing the minimum version # to be reached (with major.minor # only, such as 5.25 instead of 5.25.3)
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
*: "MINver" is optional and can be replaced by the constant value of the minimum version # in the Action block calling parameters as this version # is not supposed to change for this calling macro. When modifying this macro and adding new features, it's easy to change the value of this constant if necessary.
**: 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!
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 : optional* string variable containing the minimum version # to be reached (with major.minor # only, such as 5.25 instead of 5.25.3)
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
*: "MINver" is optional and can be replaced by the constant value of the minimum version # in the Action block calling parameters as this version # is not supposed to change for this calling macro. When modifying this macro and adding new features, it's easy to change the value of this constant if necessary.
**: 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!
Last edited: