Jump to content

Recommended Posts

Posted
$var =  Not $var

 

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

:)

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Be careful because this will turn anything to false - for example if var is number 5 or text "abc". In C there is a Boolean variable type, here it is a little bit different.

  • Developers
Posted
  On 5/2/2018 at 6:57 AM, Juvigy said:

Be careful because this will turn anything to false

Expand  

This should be "will turn any none numeric zero value into false", but yes, that is what happens when you change it to boolean. :)

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

The OP wants to work with boolean values:

  Quote

(turning true into false and vice versa)

Expand  

 

My UDFs and Tutorials:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...