I have seen in a lot of tutorials the option to create a thing if it doesnt exist, but i cannot find it anywhere. I am trying to +1 to a value in the database if the record I want exists, if it doesnt exist i want to add it to the database. Below is a screen shot of the debugger that says “create if thing doesnt exist no” I would like it to say yes.
Hi there, @sdfroggatt… there are a number of topics in the forum about that option being deprecated years ago, and Bubble’s documentation also mentions it…
Make sure your search in your Only when condition has a constraint where ST-SKU = Input SKU's value. Then, remove :first item’s and everything after it and replace it with :count is 0. Finally, add an Only when condition to second step to make changes only when the result of step 1 is empty. Give those changes a shot and see if you get the desired result.
@mikeloc I tried your approach, but still things with type Lesson are created.
The fields on the Lesson that should be checked before a new thing with Status = Ja (yes) is created, are Full Name, Date and For Course. If no entry with these fields with the respective values exist, a new Lesson entry should be created with Status = Ja (yes)