Macro Help

I'm trying to make a macro that toggles the system option "Display FeatureManager tree warnings:" between "Always" & "All but Top Level".

(swUserPreferenceIntegerValue_e.swShowWarningsInFeatureManager, 2) & (swUserPreferenceIntegerValue_e.swShowWarningsInFeatureManager, 0)

I presume it will go something like:

Get Integer, If >= 1, Set 0

ElseIf < 1, Set 2

 

I've been experimenting with recorded macros and using get/set formats from the solidworks api help but I can't get anything to work. Please help...