Title: sameagol's Replies | WordPress.org

---

# sameagol

  [  ](https://wordpress.org/support/users/sameagol/)

 *   [Profile](https://wordpress.org/support/users/sameagol/)
 *   [Topics Started](https://wordpress.org/support/users/sameagol/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sameagol/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sameagol/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sameagol/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sameagol/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sameagol/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Psychological tests & quizzes] Formula Editing](https://wordpress.org/support/topic/formula-editing/)
 *  Thread Starter [sameagol](https://wordpress.org/support/users/sameagol/)
 * (@sameagol)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/formula-editing/#post-9358922)
 * Ok, 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Psychological tests & quizzes] Formula Editing](https://wordpress.org/support/topic/formula-editing/)
 *  Thread Starter [sameagol](https://wordpress.org/support/users/sameagol/)
 * (@sameagol)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/formula-editing/#post-9356618)
 * I 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 variable
 * minOfVariables = 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Psychological tests & quizzes] Formula Editing](https://wordpress.org/support/topic/formula-editing/)
 *  Thread Starter [sameagol](https://wordpress.org/support/users/sameagol/)
 * (@sameagol)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/formula-editing/#post-9355435)
 * I 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Psychological tests & quizzes] Formula Editing](https://wordpress.org/support/topic/formula-editing/)
 *  Thread Starter [sameagol](https://wordpress.org/support/users/sameagol/)
 * (@sameagol)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/formula-editing/#post-9352866)
 * I 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Psychological tests & quizzes] Formula Editing](https://wordpress.org/support/topic/formula-editing/)
 *  Thread Starter [sameagol](https://wordpress.org/support/users/sameagol/)
 * (@sameagol)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/formula-editing/#post-9351612)
 * I appreciate the timely response. Can variables store non-booleans, like ints
   or floats?

Viewing 5 replies - 1 through 5 (of 5 total)