EOS Editor help - Goonzone

All about the past, current and future webteases and the art of webteasing in general.
---
Post Reply
OhXXXyes
Explorer
Explorer
Posts: 5
Joined: Sat Feb 24, 2018 8:57 am

EOS Editor help - Goonzone

Post 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.
Thamrill
Explorer At Heart
Explorer At Heart
Posts: 265
Joined: Thu Jan 03, 2013 4:55 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: EOS Editor help - Goonzone

Post 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))
Image

Image

Image
OhXXXyes
Explorer
Explorer
Posts: 5
Joined: Sat Feb 24, 2018 8:57 am

Re: EOS Editor help - Goonzone

Post by OhXXXyes »

Thank you soooo much. :wave:
OhXXXyes
Explorer
Explorer
Posts: 5
Joined: Sat Feb 24, 2018 8:57 am

Re: EOS Editor help - Goonzone

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests