Re: Cardwall / D&R Airlite
Posted: 28 Apr 2020 18:13
It’s delayed, I’ll post it today in the evening...
The Playout and Radio Automation Solution
https://www.radio42.com/proppfrexx/forum/
https://www.radio42.com/proppfrexx/forum/viewtopic.php?t=2534
Code: Select all
EXEC_SEND_DRAIRENCE_SETLED *[TOINT:{${cartid}}:{vert}:{2}:{8}]|${cartisselected}Code: Select all
EXEC_SEND_DRAIRENCE_SETLED *[TOINT:{${cartid}}:{horz}:{8}:{2}]|${cartisselected}TOINT (converts a numeric value to an integer):
Returns a new string by converting a num value.
Syntax:
*[TOINT:{num}:{conv}:{p1}:{p2}]
Parameters:
{num} the original numeric value to format
{conv} the conversion function name to apply to the num
‘round’ : rounds num to the nearest integral value
p1: not used
p2: not used (can be omitted)
‘add’ : adds a value to num
p1: the value to add (e.g. 5)
p2: not used (can be omitted)
‘multi’ : multiplies a value to num
p1: the value to multiply (e.g. 2.0)
p2: not used (can be omitted)
‘div’ : devides num by a value
p1: the divisor (e.g. 2.0)
p2: not used (can be omitted)
‘mod’ : reminder after division; num = num % p1
p1: the divisor (e.g. 2.0)
p2: not used (can be omitted)
‘odd’ : makes the num value odd; num = (num * p1) - 1
p1: the value to multiply (e.g. 2)
p2: not used (can be omitted)
‘even’ : makes the num value even; num = (num / p1) + 1
p1: the value to divide (e.g. 2)
p2: not used (can be omitted)
‘vert’ : arranges the num value vertical (in p2 columns)
p1: the number of vertical rows (e.g. 8)
p2: not used (if omitted, defaults to 2)
‘horz’ : arranges the num value horizontal (in p2 columns)
p1: the number of vertical rows (e.g. 8)
p2: not used (if omitted, defaults to 2)
‘none’ : uses num unmodified
p1: not used
{p1} see the above notes for the conv parameter
{p2} optional, can be omitted, see the above notes for the conv parameter
Example 1:
*[TOINT:{${cartid}}:{add}:{7.0}]
Will result to:
8 assuming the macro ${cartid} will resolve to 1.
Example 2:
*[TOINT:{${cartid}}:{vert}:{8}:{2}]
Will result to:
9 assuming the macro ${cartid} will resolve to 2.
Example 3:
*[TOINT:{${cartid}}:{vert}:{2}:{8}]
Will result to:
2 assuming the macro ${cartid} will resolve to 9.