Page 1 of 1

String Array - Check for Duplicates and Send Trigger if True

PostPosted: Tue Mar 30, 2021 1:15 pm
by tiffy
String Array - Check for Duplicates and Send Trigger if True:

Checks for Duplicates in a String Array and if True will send a Trigger to its Output.

I am not certain if the Ruby Code I concocted inside the module is absolutely correct (although it is working as expected).

Therefore I would appreciate it if someone with proper knowledge of Ruby programming would be so kind to check the Ruby code and give me feedback if I am on the right track with the Ruby code.

This was constructed with Flowstone v3.0.8.1 Skylark.

String Array - Check for Duplicates and Send Trigger if True v2 - I made a small alteration to the schematic as this gives better results - Although, at the moment I cannot explain why this gives better results. About the Ruby section of the schematic, I am still not sure if I did it correctly.

For Version 2 I used Flowstone v3.0.6 Pebble.



thank you.

Re: String Array - Check for Duplicates and Send Trigger if

PostPosted: Tue Mar 30, 2021 2:26 pm
by tulamide
You're in the general forum. This belongs to "user examples".

And don't use 3.0.8.1, it is a bugged and slow version (for example, Ruby only runs at half speed)

Re: String Array - Check for Duplicates and Send Trigger if

PostPosted: Tue Mar 30, 2021 9:19 pm
by tiffy
"You're in the general forum. This belongs to "user examples"."

"And don't use 3.0.8.1, it is a bugged and slow version (for example, Ruby only runs at half speed)"

Sure, but it was also not my intention to post the schematic under "user examples". How can I post the schematic under "user examples" to serve as an "example to others" if I am not even certain if the Ruby Code in the schematic is not faulty? - a matter of opinion.

The schematic was therefore only provided to serve my question, not as an example to others.

I will remember if I ever post a schematic again to use v3.0.6 . . .

thank you.

Re: String Array - Check for Duplicates and Send Trigger if

PostPosted: Tue Mar 30, 2021 9:59 pm
by RJHollins
tiffy wrote:"You're in the general forum. This belongs to "user examples"."

"And don't use 3.0.8.1, it is a bugged and slow version (for example, Ruby only runs at half speed)"

Sure, but it was also not my intention to post the schematic under "user examples". How can I post the schematic under "user examples" to serve as an "example to others" if I am not even certain if the Ruby Code in the schematic is not faulty? - a matter of opinion.

The schematic was therefore only provided to serve my question, not as an example to others.

I will remember if I ever post a schematic again to use v3.0.6 . . .

thank you.

I think it would be fine to post in the 'User Example' section ... whether working or not, shouldn't be the determinant factor.

You've posted plenty examples .... and they might get 'touch-ups' or reworks. [or not].

It's a small Community here ... ya know we don't generally 'judge' ... but appreciate the efforts, and possibly learn new things.

Hope you are well ... good to see you post !