Higher cvar
I have 3 cvars, how to see whitch one is higher?
here`s example what i want to do new cvar1 new cvar2 new cvar3 if cvar1 == higher function1 if cvar2 == higher function2 if cvar3 == higher function3 if cvar1, cvar2, cvar3 == 0 function4 if cvar1, cvar2 == higher function5 ...... You get it? :) |
Re: Higher cvar
higher than what?
|
Re: Higher cvar
Why do you need this exacly ?
But to answer your question... if you want to know which cvar is higher: Code:
new highestCvar = 0Or if you just want the highest value of the three cvars: Code:
new highestValue = max(max(cvar1, cvar2), cvar3)Quote:
|
Re: Higher cvar
I meant the highest :)
@hunter thanks, but how to make statment "if" if they`re all 0 and if there`s 2 equal?:) |
Re: Higher cvar
Code:
|
| All times are GMT -4. The time now is 03:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.