Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Stowslee
Wanderer


Joined: 20 Apr 2008
Posts: 69
Location: Watervliet, NY

PostPosted: Sun Nov 30, 2014 2:04 am   

String Contains Function?
 
I am looking to see if there is a way to check and see if a string contains a specific character.

For example:

MUD Output: ABGHI

I want to test to see if that output contains the letter "C"

Is this possible?
Reply with quote
rozdwojeniejazni
Wanderer


Joined: 13 Aug 2011
Posts: 74

PostPosted: Sun Nov 30, 2014 6:53 pm   
 
Function %pos(substring,string)
%pos("C","ABGHI") = 0
%pos("C","ABCGHI") = 3
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

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

© 2009 Zugg Software. Hosted by Wolfpaw.net