Usare l'opzione if.....then

Salve ho remixato questa app presa da fb e vorrei aggiungere lopzione if then. Come si procede?
Ti aggiungo il link alla app: Leaving Facebook

Can you edit to add the link to your app? The link you have there is broken.

Also, can you expand on what you mean by “if then”?

Schermata 2022-01-07 alle 13.24.39

Circa if…then, vorrei che nel momento che scelgo una opzione questa possa rimandare ad una tappa precisa dell’app.

You’ll have to be more specific. They are several ways to handle IF/THEN logic in glide, but it depends on what you are trying to do. Based on your response, you may need a custom action, but based on the app you shared, maybe you need relations instead. It’s hard to say what you need without knowing what your are trying to do. Screenshots help a lot too.

1 Like

Jeff_Hager https://community.glideapps.com/u/jeff_hager Expert
January 7

You’ll have to be more specific. They are several ways to handle IF/THEN
logic in glide, but it depends on what you are trying to do. Based on your
response, you may need a custom action, but based on the app you shared,
maybe you need relations instead. It’s hard to say what you need without
knowing what your are trying to do. Screenshots help a lot too.

Nelle varie tappe tranne la prima e la 12 c’è la scelta tra due opzioni.
Io vorrei che quando si sceglie l’opzione che non fa continuare si riparta
dalla prima tappa.

To unsubscribe from these emails, click here

I’m guessing that each question row would have a relation to two answers. One would be the correct answer, and one would be the wrong answer (or the first row). It’s all about setting up your relations correctly.

I don’t know how your data is structured, so I can only guess. I assume everything is in one table. Make sure you have a way to identify each row. You could number them, or use a row ID column. Then create a text column and fill it with the RowID of the row that contains the corresponding correct answer and the row ID that contains the wrong answer. Seperate each ID with a comma. Use a split text column to split those ID’s into an array. Then create a multiple relation column that uses that split array to link to the row ID in the same table. In addition, you’ll want to create another relation that only links to the first stage row. This could also be a single value column that refers to the whole first row. If set up correctly, this should allow you to add an inline list to your screen that displays both the correct and wrong answers. Then add a column as a flag on each row to indicate if that row is a correct or a wrong answer. You will use this in a custom action. Set up the action with an IF statement. If the answer is correct, then show details of that correct row. Else show details of the second relation, which will be the first stage row.

1 Like

Se vuoi ti aiuto io, conosco abbastanza bene glide, anche se chi ti sta aiutando adesso è ottimamente preparato.
Ma stavo vedendo l’app e sembra funzionare, no? Cosa vuoi cambiare?

Il modo più semplice per utilizzare la colonna If / then / else (ITE) è: hai dati in una colonna, ad esempio nella tua applicazione, se crei un percorso di colonna 1, un percorso di colonna 2,… se l’utente sceglie percorso 1, va al percorso 3, se sceglie il percorso 3 va al percorso 7, ecc… se sceglie 2 va al 4 ecc… e crei come questo ha tante colonne quanti sono i percorsi. Ad esempio, accanto a ogni colonna crei una colonna ITE e metti: if (nome colonna) = 1 allora (quindi), scegli l’immagine colonna 2, quindi se l’utente fa clic sul percorso 4 allora gli mostri la colonna di immagini 4.

Tutta questa spiegazione è solo per mostrarti come funziona la colonna ITE in modo semplice, se non altro. Una nota: nella stessa colonna puoi aggiungerne quanti ne vuoi.

Thanks to google translate…

Quello che volevo capire era se per esempio quando in una tappa veniva scelto un percorso che si bloccava era possibile in reindirizzamento alla pagina di inizio. L’app non l’ho creata io ma è stata presa dal gruppo S’cape.

Of course. You can do this.

Jabid qui sopra dice di sì, io dovrei avere l’app davanti per fare direttamente le prove, magari con un timer che autoreindirizza dopo un po’.
Puoi condividermi l’app in modo che la copi o la modifichi?

Eccola:
https://probable-brake-1198.glideapp.io/

Così non posso modificarla, dovresti dare la possibilità di copiarla e modifcarla fra le opzioni, vedrò se trovo un modo sulle mie app ma non ho un’app ‘sacrificale’ al momento

Ciao ti invio il foglio di lavoro.
Grazie

(Attachment Sheets for Copy of La forêt désenchantée.xlsx is missing)