Getting a highest integer from 2 integers
Moderator: Cheaters
-
- Newcomer
- Posts: 6
- Joined: November 9th, 2007, 3:37 pm
- Title: ---Mapmaking Hero---
- Location: England
Getting a highest integer from 2 integers
Is there anyway to determine the highest integer from 2 integers? So if you have 2 scores you can find the highest out of the 2 with a trigger. Is it only possible with JASS or can you use GUI?
Current Maps I am working on:-
King of the Castle
RPG TD
Base Wars
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA
Re: Getting a highest integer from 2 integers
if/then/else's are perfect for comparisons
if -> condition -> integer comparison -> x > y
x = first variable
y = second variable
then if x > y then display x is greater then y else display y is > x
if -> condition -> integer comparison -> x > y
x = first variable
y = second variable
then if x > y then display x is greater then y else display y is > x
-
- Newcomer
- Posts: 6
- Joined: November 9th, 2007, 3:37 pm
- Title: ---Mapmaking Hero---
- Location: England
Re: Getting a highest integer from 2 integers
Thanks alot
Current Maps I am working on:-
King of the Castle
RPG TD
Base Wars