Jump to content
Sign in to follow this  
LizardX

Checking inside strings

Recommended Posts

Sorry if I wasn't correct enough in the subject, my English is rather poor...

Is there a way to check wheter a specific character chain is in a string?

Example:

variable1= "blablaABCblabla"

variable2="blablaDEFblabla"

the characters I'm looking for: "ABC"

what I want: a script, a function, whatever will work like this

["ABC",variable1,variable2] exec/call "WHATIWANT.sqs/sqf"

and it results

"true", "false"

Simple request, isn't it? Thx in advance!

Share this post


Link to post
Share on other sites

There is not, other than brute froce matching. (useless)

Share this post


Link to post
Share on other sites

Hell, this is what I was afraid of! mad_o.gif But thanks, anyway!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×