User Tools

Site Tools


macros:function:math.equalityconverter

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
You could leave a comment if you were logged in.
macros/function/math.equalityconverter.txt · Last modified: 2021/07/23 12:24 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki