Ingreso rápido:  

Forum: General Discussion

Tema: Script issue with two conditions combinded with &
bibi-bPRO InfinityMember since 2022
Hi guys,

I need some help, please. I try to show a buttons color depending on two conditions:

filter_activate & filter_selectcolorfx 'echo' ? color blue : color 50% blue

But it always ignores the condition before the &
That works fine: filter_selectcolorfx 'echo' ? color blue : color 50% blue
And also: filter_activate ? color blue : color 50% blue

What am I doing wrong here?

Thanks a lot!
 

Mensajes Sat 24 Dec 22 @ 1:20 pm
try


filter_activate ? filter_selectcolorfx 'echo' ? color blue : color 50% blue : off


or


filter_activate ? filter_selectcolorfx 'echo' ? color blue : color 50% blue : color 50% blue
 

Mensajes Sat 24 Dec 22 @ 1:29 pm
bibi-bPRO InfinityMember since 2022
Thank you! I will try that.

The same button should show another color (red) when another fx (flanger) is selected. How could I bring that into your script?

Thanks again!
 

Mensajes Sat 24 Dec 22 @ 1:50 pm
try this, i can't test at the moment

filter_activate ? filter_selectcolorfx 'echo' ? color blue : filter_selectcolorfx 'flanger' ? color red : : filter_selectcolorfx 'echo' ? color blue 50% : filter_selectcolorfx 'flanger' ? color red 50%
 

Mensajes Sat 24 Dec 22 @ 2:01 pm
bibi-bPRO InfinityMember since 2022
Thx. I got it working with 5 different colors that way:

filter_selectcolorfx 'echo' ? filter_activate ? color blue : color 50% blue:  filter_selectcolorfx 'flanger' ? filter_activate ? color green : color 50% green : filter_selectcolorfx 'noise' ? filter_activate ? color yellow : color 50% yellow : filter_selectcolorfx 'reverb' ? filter_activate ? color red : color 50% red : filter_selectcolorfx 'filter' ? filter_activate ? color orange : color 50% orange : color gray
 

Mensajes Mon 26 Dec 22 @ 12:53 pm