Variables - how to solve?

Nasedo

Warper
Member
Joined
Jan 16, 2017
Messages
4
Reaction score
1
Primarily Uses
For several hours I'm trying to figure it out, how to solve my problem.


I will try to explain it:


I'm setting VARIABLE 001 to = 1 (event one)


Event two:


I want to have seven tabs related with value of variable (let's say it will be related with days of the week)


Values:


1 Monday - we're open till late


2 Tuesday - promo sale 50%


3 Wednesday - open till 5pm


4. Thursday - promo sale 25%


5. Friday - buy one get one free


6. Saturday - open till 3pm


7. Closed


In some specific conditions, my variable will be increased by one - and every of my tab will be dependant of variable one... but here's a problem.


When I want use condition VARIABLE is X or above it will not work for me properly, as if the condition is set value = 1 or above it will be true for first tab... if the second tab has condition value = 2 or above ... and 7th tab value = 7 or above will be working properly just when value is set to 1.


When is set to 2 - two tabs will meet this condition.


It will be exactly the same, when I try to set basic value to 7 and decreasing one by one.


I know, I could use some other condition, for example - when value will be increased by one, an item could be given - let's call this item Tuesday. Second tab could check if my value is 2 or above AND if I have item called Tuesday.


But maybe it's a simpler way? Anyone could help me?
 

Dreadshadow

Lv 38 Tech Magician
Moderator
Joined
Mar 2, 2014
Messages
3,879
Reaction score
2,518
First Language
Greek
Primarily Uses
RMMV
"When is set to 2 - two tabs will meet this condition."


The Event Page (what you call tab) that has the highest number and meets all its  conditions overrides all the rest.


That's how things work, so this solves your case, meaning you never had a problem really.


Make Event pages with  the following conditions and you are ready to go.


Event Page 1   Condition Variable = 1


Event Page 2   Condition Variable = 2


Event Page 3   Condition Variable = 3


Event Page 4   Condition Variable = 4


Event Page 5   Condition Variable = 5


Event Page 6   Condition Variable = 6


Event Page 7   Condition Variable = 7


You can also make ONE Event page with Condtional Branches that use such a variable. Just saying :)
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,230
Reaction score
6,774
First Language
German
Primarily Uses
RMMV
the condition "variable is equal or above" is intended to work together with page priority - because if the page ordering is correct, that works in the same way as an equal works.


So if it doesn't work for you, you made a mistake with your event pages.


Please provide screenshots of all pages and we can help finding where your mistake is.
 

Nasedo

Warper
Member
Joined
Jan 16, 2017
Messages
4
Reaction score
1
Primarily Uses
I checked and it worked - but I cannot explain this for myself.


Page ordering is correct and it works - maybe I shouldn't think about this... but I did.


I always thought, if the first condition is A=>1, then every value 1, 2, 3, 4, 5, 6, 7 will meet this condition and obviously I was afraid to use it.


Anyway - thank you for understanding guys.


@Dreadshadow Conditional Branches maybe will better idea than "Event pages" / tabs, as I could have everything on one page, I didn;t though about this.
 
Last edited by a moderator:

Dreadshadow

Lv 38 Tech Magician
Moderator
Joined
Mar 2, 2014
Messages
3,879
Reaction score
2,518
First Language
Greek
Primarily Uses
RMMV
If A >= 1 then do page 1


If A >=2 then forget about page one, do page 2


...  ...    ....................            ..................  ..............


if A >=N then forget about page N-1, do page N


That's the logic.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Broke: Dont move. -boring. -passive. -uncreative. Woke: Bewegen Sie Nicht! +authoritative. +foreign. +reminds your son that he's a garden gnome now.
My girlfriend left a note on the fridge saying 'This isn't working, goodbye.' I opened the refrigerator and it works just fine. Weird.
BCj
Could someone translate something from Japanese to English for me?

Forum statistics

Threads
94,386
Messages
920,548
Members
124,165
Latest member
Zflooder
Top