Function

Math.EqualityConverter

Boolean Math.EqualityConverter(string StringToCheckAgainst)
API currently not in the API
description ASSUMPTION this checks if a parameter equals to a given string and returns true if it does
namespace Math
parameter StringToCheckAgainst ( String ) : string to compare the parameter with
Parameter ( String ) : the property to check whether it matches the string. This needs to be set separately, see example
return value Boolean

Hint: there is another Math.EqualityConverter explained at https://github.com/RicoSuter/MyToolkit/blob/master/src/MyToolkit.Extended/Converters/EqualityConverter.cs:

Returns a bool whether the objects string representation equals to the converter parameter.
Example in

Fan - Curve

  <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.SelectedFanCurveId' 
    converter='Math.EqualityConverter' 
    converterParameter='Line'}"/>

Here, the property Programmer.Editor.Fixtures.Fan.SelectedFanCurveId is tested if it matches the string Line, and if yes, the key the macro is saved on is highlighted active.

Also used in
Remarks