sameagol
Forum Replies Created
-
Forum: Plugins
In reply to: [Psychological tests & quizzes] Formula EditingOk, thanks for the support. I’ll consider a custom addon, though I’m hesitant because I’m new to web code and wordpress. Thanks again!
Forum: Plugins
In reply to: [Psychological tests & quizzes] Formula EditingI should not have used the word “result.” I mean variable.
For example, I want to find the minimum of two variables and assign it to a different variable.
a is a variable
x is a variableminOfVariables = min(a,x)
I assume, if this is possible, one would have to have some kind of if statement, like:
if (x > a){minOfVariables = a}else{minOfVariables = x}
The reason I want to do this is because I’m doing some math on the scale scores. When doing math on these, it is important to be able to find the minimum or maximum of two variables to use later on.
Forum: Plugins
In reply to: [Psychological tests & quizzes] Formula EditingI am sorry for being unclear. In your example, you have two results, result a and result b.
I am looking for functionality which can assign either a or x to the same result.
if(x > a){result = a}else{result = x}
I hope this is possible! Thanks again for all the answers.
Forum: Plugins
In reply to: [Psychological tests & quizzes] Formula EditingI see how it takes ints, floats, and strings.
I’m still trying to figure out how to store something like this in variables:
if(x > a){result = a}else{result = x}
Can this be done using computed variables:
[result = a] [x > a]
[result = x] [x >= a]Forum: Plugins
In reply to: [Psychological tests & quizzes] Formula EditingI appreciate the timely response. Can variables store non-booleans, like ints or floats?