macros:function:math.equalityconverter
This is an old revision of the document!
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 tp check whether it matches the string. This needs to be set separately, see example | |
| return value | Boolean |
Example in
<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.1585416353.txt.gz · Last modified: 2020/03/28 17:25 (external edit)
