Jump to content
Sign in to follow this  
Particle

Using True

Recommended Posts

Particle

Is this possible? If not, then how can I make this happen...?

If StringSplit($Array[$i],",") = True Then
    $tmp = StringSplit($Array[$i],",")
EndIf

Share this post


Link to post
Share on other sites
herewasplato

...Is this possible?...

No. because StringSplit does not return a True/False

...If not, then how can I make this happen...?

Make what happen. Please elaborate.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
Supa Ben

Is this possible? If not, then how can I make this happen...?

If StringSplit($Array[$i],",") = True Then
    $tmp = StringSplit($Array[$i],",")
EndIf

Do you mean this by the code "If I can do this stringsplit then, do the stringsplit" If thats the case then use this.

$tmp = StringSplit($Array[$i],",")
If @error Then
Msgbox(0,"","Cant do stringsplit")
Else 
Msgbox(0,"","Success")
EndIf

If it cant do it then it will set @error so if that happens it cant be done.

Share this post


Link to post
Share on other sites
Particle

Make what happen. Please elaborate.

How would I make the program detect if there is a string split in the line from a file and conduct what it needs to do if it's true, otherwise skip the process if there is no string splitting needed.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.