netherknight Posted July 12, 2022 Share Posted July 12, 2022 Hi, Scripting is a little new to me, so hopefully this has an easy answer. I am looking to check a string for a certain number in a specific position. example variable: B1567 in the example's case I would like to check if the third character is 6. (in the example this is false and would return a 0) I've been tinkering with strmatch: strmatch("**6**", "`chs('../ColorMaster/cl_master')`") However, this checks if the string has a 6 anywhere in the string. resulting in a incorrect 1) How can I adjust the strmatch to only check the third character? Any and all help would be appreciated! With kind regards, Thomas Quote Link to comment Share on other sites More sharing options...
netherknight Posted July 12, 2022 Author Share Posted July 12, 2022 I figured it out! I need to be using ??6?? rather than **6**. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.