Raised This Month: $ Target: $400
 0% 

[HELP] How to control only first few characters of a string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 01-12-2016 , 13:25   [HELP] How to control only first few characters of a string
Reply With Quote #1

Hello, I need a little help.

For example if the string I have would be "123456789".

If the string begins with "123", it would do the function I want to.
If it begins with any other number/character, I want to perform another function (if/else).

That's all, thank you!

simply:
string is 123456789
if string begins with 123 = perform function
else = perform another function
__________________
Latest plugin: dHUD Round | Timeleft
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
 



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 09:28.


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