If Else, If Else
Does pawn support if else, if else statements? My main programming language is JavaScript and I use a lot of if else, if else statements.
Also, if pawn does support them, is it the same way in JavaScript? |
Re: If Else, If Else
Yes, Pawn supports conditional statements. -_-
|
Re: If Else, If Else
Well the thing is, I tried it my own way and it compiled with a ton of errors. I'm looking for a fix currently, hold tight and I'll post my script.
|
Re: If Else, If Else
Code:
if(condition = 1) |
Re: If Else, If Else
= is the assignment operator mini... == is the equal to conditional operator.
|
Re: If Else, If Else
I just searched my scripting folder for "else if" and I got over 500 hits, I guess it must work :). I am assuming you are asking that (if, else if, else).
|
Re: If Else, If Else
You may be interested in switch statement : http://wiki.amxmodx.org/Optimizing_P..._instead_of_If
|
Re: If Else, If Else
In Pawn, I regularly do use the switch() statements, but I was just wondering with the if else, if else.
|
Re: If Else, If Else
btw, what does "else if" do? why not just if, if then else?
|
Re: If Else, If Else
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 08:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.