Boolean Stuff, question about nesting the function OR (FFC)

Share your Patcher presets here

Return to “Patcher - Presets”

[You can only see part of this thread as you are not logged in to the forums]
Xaos
Sun Feb 11, 2024 8:28 pm

x

Boolean Stuff, question about nesting the function OR (FFC)

My knowledge of the various Formula Controller functions is just enough to get some pieces of code to work, and usually not in the most efficient way.

Usually, when I have the following situation:

IF input a = X OR Y OR Z = 0.5

I use the following:

(+ifE(a,x)
+ifE(a,y)
+ifE(a,z))*0.5

But now the goal would be to use input a only once in the code.

I've tried things like ifE(a,(x OR y OR z))*05
Obviously, it can't be that easy and that logical, and in fact I haven't managed to make it work except with the first formula I put above.
Have any of you had a similar situation, or do you know a more efficient way to get this goal (input a only once)?









Return to “Patcher - Presets”