# Determining highest/lowest stat of an OPPOSED pair? // no longer need help :)

**URL:** <https://forum.choiceofgames.com/t/determining-highest-lowest-stat-of-an-opposed-pair-no-longer-need-help/87321>\
**Category:** ChoiceScript Help\
**Created:** [October 3, 2020, 3:03pm UTC](https://forum.choiceofgames.com/t/determining-highest-lowest-stat-of-an-opposed-pair-no-longer-need-help/87321 "2020-10-03T15:03:51Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [October 3, 2020, 3:25pm UTC](https://forum.choiceofgames.com/t/determining-highest-lowest-stat-of-an-opposed-pair-no-longer-need-help/87321/10 "2020-10-03T15:25:59Z")

</div>

Check out this post, I think that the code might work for what you are looking for, I haven’t tested it myself though.

> [@Ultimate Noob Coding](https://forum.choiceofgames.com/t/ultimate-noob-coding/28655/431):
>
> hmmm… like \*label somename \*set result 0 \*comment the label "highest" in the "number" \*comment scene will compare two variables and \*comment store the value (or name if you know how to \*comment work with pointers) in the variable "result" \*gosub\_scene number highest (var\_1) (var\_2) \*gosub\_scene number highest (result) (var\_3) \*gosub\_scene number highest (result) (var\_4) \*gosub\_scene number highest (result) (var\_5) \*gosub\_scene number highest (result) (var\_6) \*gosub\_scene number highes…

---

_[View the full topic](https://forum.choiceofgames.com/t/determining-highest-lowest-stat-of-an-opposed-pair-no-longer-need-help/87321)._
