HelpWizard Pages Start ReferenceManual/en: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Cg (Diskussion | Beiträge) |
Cg (Diskussion | Beiträge) |
||
Zeile 5: | Zeile 5: | ||
<strong>Input</strong> |
<strong>Input</strong> |
||
* ''inputPinName''.'''value'''() |
* ''inputPinName''.'''value'''()<br>fetch the value from an input pin; reports an error, if there is no value |
||
⚫ | |||
* ''inputPinName''.'''valueIfPresent'''()<br>if the input pin has a value, fetch it; otherwise returns nil |
|||
* ''inputPinName''.'''valueIfAbsent'''('''defaultValue''')<br> if the input pin has a value, fetch it; otherwise returns defaultValue |
|||
⚫ | |||
<strong>Output</strong> |
<strong>Output</strong> |
||
* ''outputPinName''.'''value'''(''value'') |
* ''outputPinName''.'''value'''(''value'')<br>send a value to the output pin |
Version vom 4. März 2021, 10:01 Uhr
Reference Manual (Normal Pins)[Bearbeiten]
Input
- inputPinName.value()
fetch the value from an input pin; reports an error, if there is no value
- inputPinName.valueIfPresent()
if the input pin has a value, fetch it; otherwise returns nil
- inputPinName.valueIfAbsent(defaultValue)
if the input pin has a value, fetch it; otherwise returns defaultValue
- inputPinName.hasValue()
true if the input pin has a value; false if not
Output
- outputPinName.value(value)
send a value to the output pin