Hi to everyone
I am going crazy.
Trying to make an estim tease
But i am stuck on an evaluation page
See attachment
Explanation:
Imagecat can be a number from 1-9
It is set prior in the tease
On this page i must check the variable imagecat
If it is between 1 and 3 i send the tease to a certain page
If its not between 1-3 the tease send the player to another page
But it doesnt get over the page. I checked by using say and the tease gets stuck at the first if
Please help me
Stuck with if functions
- 19Hellothere83
- Explorer At Heart
- Posts: 190
- Joined: Wed Feb 10, 2021 7:10 am
- Sexual Orientation: Open to new ideas!
- I am a: Submissive
Stuck with if functions
- Attachments
-
- Unbenannt.JPG (25.29 KiB) Viewed 713 times
-
- Explorer At Heart
- Posts: 560
- Joined: Sun Jul 06, 2014 2:11 pm
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Slave
Re: Stuck with if functions
Remove the semi-colon in all cases. A semi-colon ends a statement in Javascript. The if-actions in EOS expect an expression, i.e. something that evaluates to a value. If you end something in ; you do not care about the value it evaluates to, often it might not even have such a value. You just care about the side effect, so ; is only used, when you have a list of statements.
In most places in EOS you will only need an expression. There are only a few cases, where you can have multiple statments, e.g. eval-actions, the initial script.
In most places in EOS you will only need an expression. There are only a few cases, where you can have multiple statments, e.g. eval-actions, the initial script.
- 19Hellothere83
- Explorer At Heart
- Posts: 190
- Joined: Wed Feb 10, 2021 7:10 am
- Sexual Orientation: Open to new ideas!
- I am a: Submissive
Re: Stuck with if functions
The semicolon was the issue. Thanks a lot
Who is online
Users browsing this forum: No registered users and 6 guests