Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

bedingte erweiterte Aktionen mit mehr als 2 Status

Community Beginner ,
May 12, 2021 May 12, 2021

Hallo,

ich habe ein Objekt mit 3 Status und eine bedingte erweiterte Aktion dazu, die jeden der 3 Status identifizierbar machen soll, weil nur einer der Status als "richtig" akzeptiert werden soll (mit jedem Klick sollen sich Status und Wert der Variable ändern, bei "Senden" soll die Variable überprüft werden und je nach Wert ein "richtig" oder "falsch" eingeblendet werden). Meine bisherigen Versuche sind leider gescheitert. Der aktuelle Stand:

 

Reiter 1:

IF [var] ist gleich [0]

THEN Status ändern von [Objekt] zu [Status 1] + zuweisen [var] mit [1]

 

Reiter 2:

IF [var] ist gleich [1]

THEN Status ändern von [Objekt] zu [Status 2] + zuweisen [var] mit [2]

 

Reiter 3:

IF [var] ist gleich [2]

THEN Status ändern von [Objekt] zu [Status 3] + zuweisen [var] mit [0]

 

Egal ob ich THEN leer lasse oder "Weiter" eingebe, ändert sich leider der Status und damit auch die Variable nicht.

 

Hat jemand eine Idee, wie ich das Problem löse?

 

Vielen Dank im Voraus!

5.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , May 12, 2021 May 12, 2021

This is the approach I would take here.

 

1. Two variables - one for each object   (for example myVar  and myVar2)

This action - when you click on your click box will go to the next state and increment your variable.

The second part - checkVars - will make sure that the variable value cycles around like the object states do

You will need two advanced actions - one for each object.

It will be the same setup for both but the name of the shape (myShape or myShape2) will change as will the corresponding v

...
Translate
Community Beginner ,
May 26, 2021 May 26, 2021

Good hint, thank you! I still don't know where to look for the problem: Now it works like it did before! I wonder at which point this will change again... No matter, the way to make the values of the variables visible is great!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
May 26, 2021 May 26, 2021

Each of your states has (or should) have a value associated with it.

You should have a button or some other event by which those states change, along with the variables.

So...

State1 - variable0

click button

State2 - variable1

click button

State3 - variable2

 

If you click the button and the states change but the variables do not then you should inspect the action on your button at the point where the cycle breaks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 26, 2021 May 26, 2021

Exacty this is what happens: The variables change as supposed...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
May 26, 2021 May 26, 2021

There must be something somewhere else in the logic that is interfering then.

Are you sure that the values that you are looking for are properly tied to each state?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 27, 2021 May 27, 2021

I don't know where to look for the problem, because now it works - without having changed anything... When I first made the advanced action, it was fine. After some time I retried it - and it didn't work. Now it's fine again. I hope this will stay this way, because I have no idea why this happens.

Thank you for your help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
May 27, 2021 May 27, 2021
LATEST

Intermittent is a four letter word to the troubleshooter.

 

Tough to solve if the issue cannot be reliably repeated.

Perhaps make sure that you do not have any remnants of old actions that are still tied to something.

It will certainly be easier to solve once you discover the actual process or mechanism that introduces the error.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources