Getting a highest integer from 2 integers

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Undead_Dragon
Newcomer
Posts: 6
Joined: November 9th, 2007, 3:37 pm
Title: ---Mapmaking Hero---
Location: England

Getting a highest integer from 2 integers

Post by Undead_Dragon »

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
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Getting a highest integer from 2 integers

Post by Xantan »

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
User avatar
Undead_Dragon
Newcomer
Posts: 6
Joined: November 9th, 2007, 3:37 pm
Title: ---Mapmaking Hero---
Location: England

Re: Getting a highest integer from 2 integers

Post by Undead_Dragon »

Thanks alot
Current Maps I am working on:-

  • King of the Castle
    RPG TD
    Base Wars