Solutons Lounge

How to write equations into the “make changes to data” action in workflow – Need help


Hi, I’m relatively new to bubble and am making a single-page native mobile flashcard app, which I want to utilise SM-2 (an algorithm for calculating intervals between flashcard reviews) for spaced repetition.
The way I’ve set it up is that there’s fields within my “flashcard” data type such as “ease”, “recall score”, “consecutive successful recalls”, and “interval”, which correspond to “EF”, “q”, “n”, and “I” (the values referenced in the algorithm below) respectively

However, when trying to create a workflow that updates the “ease”/“EF” , I am not allowed to enter an equation like the one in the above algorithm to calculate the new “ease” value, while also returning to enter “ease ” in again to the equation.
image

I realise that I could simply create more fields within “flashcard” to represent the bracketed parts of the equation (such as creating a new field just for “5-recall score”, but I’m wondering if there’s an easier and more efficient way to enter equations such as this one.

Apologies for the wordy question

Any help is much appreciated!

Did you activate parenthesis in settings/versions



Source link

Exit mobile version