Sign in to follow this  
Followers 0
vickerps

Need A Util To Have Two Outcomes

2 posts in this topic

Hi can any see where i have gone wrong or is not even possible

Until $Thirdchar = ":" AND $lenght =5 OR $lenght =8 AND $sixthchar=":"

I want is the lenght of the inputbox is 5 the third charactor must : and

If the lenght is 8 the third and sixth charactor must be :

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Use parentheses and make sure the variables are initialized right:

Do
   $var = InputBox("title", "text")
   $length = StringLen($var)
   $ThirdChar = StringMid($var, 3, 1)
   $SixthChar = StringMid($var, 6, 1)
Until ($ThirdChar = ":" AND $length =5) OR ($length =8 AND $SixthChar=":")

Maybe something like that?

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0