Ruby output trigger?

For general discussion related FlowStone
Post Reply
User avatar
Subquantum
Posts: 24
Joined: Tue Mar 11, 2014 10:20 pm
Location: USA

Ruby output trigger?

Post by Subquantum »

Can someone tell me the correct way send a trigger to an output in ruby?

For instance, if I want to send a boolean to a ruby output, I can use:
output 0,true
But if I want to send a trigger to a ruby output I can not use:
output 0,trigger
TheOm
Posts: 103
Joined: Tue Jan 28, 2014 7:35 pm
Location: Germany

Re: Ruby output trigger?

Post by TheOm »

It doesn't matter, you can send anything to the output.
I just do this:
output 0, nil
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Ruby output trigger?

Post by tulamide »

Any data sent by definition also sends a trigger (with one exception: If you directly change the output array's data). So, as TheOm said, simply send anything (including nil). Just make sure the output type is a trigger then, the information will get lost but the trigger will be used.
"There lies the dog buried" (German saying translated literally)
User avatar
Subquantum
Posts: 24
Joined: Tue Mar 11, 2014 10:20 pm
Location: USA

Re: Ruby output trigger?

Post by Subquantum »

Thanks guys!

I thought it was going to be something simple like that.
Post Reply