Page 1 of 1

EOS Editor help - Goonzone

Posted: Tue Jun 13, 2023 8:03 am
by OhXXXyes
I'm currently trying to fix some things but I haven't had much luck just yet.

What I'm trying to do is:
Make a button appear or disappear based on some eval's.
a, b, c, d and f are evals.

I want the button to appear when:
a + b + c + d + f > 1 (this works)
but on the condition that a and b cannot be the only evals equalling 1.

Currently I have this:
A + B + C + D + E + F + G + H > 0 &&
[A !== 1 &&
B !== 1 &&
C !== 0 &&
D !== 0 &&
E !== 0 &&
F !== 0 &&
G!== 0 &&
H !== 0]

But this makes the button appear when A + B + C + D + E + F + G + H > 0 statement is true.

I imagine it is supposed to look more like:
A + B + C + D + E + F + G + H > 0 !&&
[A == 1 &&
B == 1 &&
C == 0 &&
D == 0 &&
E == 0 &&
F == 0 &&
G== 0 &&
H == 0]

But that probably isn't correct syntax, as it locks up the entire tease.

How do I group conditions together & how do I make exceptions?

Hope you can help me out.

Re: EOS Editor help - Goonzone

Posted: Tue Jun 13, 2023 10:34 am
by Thamrill
OhXXXyes wrote: Tue Jun 13, 2023 8:03 am I'm currently trying to fix some things but I haven't had much luck just yet.

What I'm trying to do is:
Make a button appear or disappear based on some eval's.
a, b, c, d and f are evals.

I want the button to appear when:
a + b + c + d + f > 1 (this works)
but on the condition that a and b cannot be the only evals equalling 1.

Currently I have this:
A + B + C + D + E + F + G + H > 0 &&
[A !== 1 &&
B !== 1 &&
C !== 0 &&
D !== 0 &&
E !== 0 &&
F !== 0 &&
G!== 0 &&
H !== 0]

But this makes the button appear when A + B + C + D + E + F + G + H > 0 statement is true.

I imagine it is supposed to look more like:
A + B + C + D + E + F + G + H > 0 !&&
[A == 1 &&
B == 1 &&
C == 0 &&
D == 0 &&
E == 0 &&
F == 0 &&
G== 0 &&
H == 0]

But that probably isn't correct syntax, as it locks up the entire tease.

How do I group conditions together & how do I make exceptions?

Hope you can help me out.
I assume you're using lower and upper case here mixedly here (you use lower case in the question, but upper case in the example), but in your script you are using it correctly

the syntax you are searching for is:

(A + B + C + D + E + F + G + H > 0) && !(A == 1 &&B == 1 &&C == 0 &&D == 0 &&E == 0 &&F == 0 &&G== 0 &&H == 0)

even better:

(A + B + C + D + E + F + G + H > 0) && !(A == 1 &&B == 1 &&((C+D+E+F+G+H)==0))

it mostly depends on the value that the various variable may assume. If they assume only 0-1 values, you can also use:

(A + B + C + D + E + F + G + H > 0) && !((A*B == 1) &&((C+D+E+F+G+H)==0))

Re: EOS Editor help - Goonzone

Posted: Tue Jun 13, 2023 2:46 pm
by OhXXXyes
Thank you soooo much. :wave:

Re: EOS Editor help - Goonzone

Posted: Tue Jun 13, 2023 2:51 pm
by OhXXXyes
Thamrill wrote: Tue Jun 13, 2023 10:34 am
OhXXXyes wrote: Tue Jun 13, 2023 8:03 am I'm currently trying to fix some things but I haven't had much luck just yet.

What I'm trying to do is:
Make a button appear or disappear based on some eval's.
a, b, c, d and f are evals.

I want the button to appear when:
a + b + c + d + f > 1 (this works)
but on the condition that a and b cannot be the only evals equalling 1.

Currently I have this:
A + B + C + D + E + F + G + H > 0 &&
[A !== 1 &&
B !== 1 &&
C !== 0 &&
D !== 0 &&
E !== 0 &&
F !== 0 &&
G!== 0 &&
H !== 0]

But this makes the button appear when A + B + C + D + E + F + G + H > 0 statement is true.

I imagine it is supposed to look more like:
A + B + C + D + E + F + G + H > 0 !&&
[A == 1 &&
B == 1 &&
C == 0 &&
D == 0 &&
E == 0 &&
F == 0 &&
G== 0 &&
H == 0]

But that probably isn't correct syntax, as it locks up the entire tease.

How do I group conditions together & how do I make exceptions?

Hope you can help me out.
I assume you're using lower and upper case here mixedly here (you use lower case in the question, but upper case in the example), but in your script you are using it correctly

the syntax you are searching for is:

(A + B + C + D + E + F + G + H > 0) && !(A == 1 &&B == 1 &&C == 0 &&D == 0 &&E == 0 &&F == 0 &&G== 0 &&H == 0)

even better:

(A + B + C + D + E + F + G + H > 0) && !(A == 1 &&B == 1 &&((C+D+E+F+G+H)==0))

it mostly depends on the value that the various variable may assume. If they assume only 0-1 values, you can also use:

(A + B + C + D + E + F + G + H > 0) && !((A*B == 1) &&((C+D+E+F+G+H)==0))
Thank you sooo much!