Raised This Month: $ Target: $400
 0% 

Decision statements with strings?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NewBKaeK
New Member
Join Date: Aug 2008
Old 08-10-2008 , 16:34   Decision statements with strings?
Reply With Quote #1

I was wondering if this is possible, because for some reason I can't get it to work.

new Arg[32]
read_argv(1, Arg, 31)

if(Arg == 'string') { Do this }
else { Do this }

Am I doing something wrong in my code?
The error it gives me is: Array must be indexed (variable "Arg")

Thanks =]
NewBKaeK is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode