Conditional adding to a record
Options
![Mohammed tayyar](https://us.v-cdn.net/6037124/user_avatars/3926456.jpg)
Mohammed tayyar
Member ✭
i want to add to the Ranking table points if the user go the game result selection correct i will give him 10 points and if he gets the score of the game correct i will give him 10 points too and i will give him 5 points if he got the game result wrong
the problem that i am having when adding to the User ranking table, i want to use the "Add or Edit Record" but the condition is not the id the condition if the user_id is there and the League_id is there then add this.
i am not sure how to do it can anyone help?
[a2.JPG][a1.JPG]
the problem that i am having when adding to the User ranking table, i want to use the "Add or Edit Record" but the condition is not the id the condition if the user_id is there and the League_id is there then add this.
i am not sure how to do it can anyone help?
[a2.JPG][a1.JPG]
Comments
-
Use Query All Records to filter on both parameters. Change the return type from list to single so you are returning a single object. Then use the resulting ID to Add or Edit Record.
-
I will try it now
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback