Jump to content

Recommended Posts

I'll add my 2 cents:

$var = 0 is an example of an assignment statement.

In (almost) all programming languages, a single variable must appear on the left side of the equal sign. The right hand side can contain variables or literal strings/numbers.

0 = $var IS INVALID because the left-hand side is not a variable.

$var + 1 = $var is invalid for a simlar reason.

$var = $var is fine, although not very useful. :whistle: [Technical note: $var is being used two diffrent ways in this example. The left $var (L-value) is a variable being assigned to; the right $var (R-value) is a variable being read. Or something like that--I'm a little rusty on all the technical stuff....]

$foo = $bar ;This means take the value stored in $bar and assign it to a variable named $foo.

Hope that helps

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

    No registered users viewing this page.

×
×
  • Create New...