Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: string compare? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: September 24 2011 at 22:37 | IP Logged Quote jeffw_00

I set GLOBAL to a string.
then I compare to a local by

JUMP: if({GLOBAL} = ph_getvar_s(1,1),2,1)

but it doesn't like it - evals to !

is there a special way to compare strings?

thx
/j
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
JaredM
Newbie
Newbie


Joined: November 04 2007
Online Status: Offline
Posts: 36
Posted: September 24 2011 at 23:51 | IP Logged Quote JaredM

You just need quotes around {GLOBAL}.

Code:
if("{GLOBAL}" = ph_getvar_s(1,1),2,1)
      
Back to Top View JaredM's Profile Search for other posts by JaredM
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: September 25 2011 at 00:18 | IP Logged Quote jeffw_00

yup
thanks!
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum