Jump to content
Sign in to follow this  
unknown12

If... how?

Recommended Posts

unknown12

how would i do this in autoit? (this is PHP)

<?php
if ($result != "0") {
script
}
?>

thanks.

Share this post


Link to post
Share on other sites
layer

I think:

If $result NOT = 0 Then
   ;Stuff here
EndIf

But I've never coded PHP...


FootbaG

Share this post


Link to post
Share on other sites
Blue_Drache

I think:

If $result NOT = 0 Then
  ;Stuff here
EndIf

But I've never coded PHP...

<{POST_SNAPBACK}>

! reverses the meaning. Much like "NOT" so...yes, you are right.

Although

If $result <> 0 would be a better way.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites
layer

! reverses the meaning.  Much like "NOT" so...yes, you are right.

Although

If $result <> 0 would be a better way.

<{POST_SNAPBACK}>

Thanks for the correction :)

PS,

I knew ! had something to do with NOT from my basic C++ coding skills :evil:


FootbaG

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.