Forum Academy Marketplace Showcase Pricing Features

Reducing credits by 1

Hello. I am using the AI API and i have assigned users 3 credits and want to reduce it by one every time the submit button is clicked. Pretty new to bubble. As a programmer i would just do credits = credits -1 but it doesnt give me that option. it feels like the answer is easy but i cant seem to find it.

Hi there, @Serhat… try credits = Current User's credits - 1, and you should be good to go.