Jump to content



Photo

What does this "-=" mean?? {SOLVED}


  • Please log in to reply
4 replies to this topic

#1 Command3r

Command3r

    Wayfarer

  • Active Members
  • Pip
  • 76 posts

Posted 16 March 2012 - 11:15 PM

Hello, i was searching for "count down timer" and i found an script for that.

snippet from script
$_CompteArebour -= TimerDiff($TimeTicks) $TimeTicks = TimerInit()


but i dont understand the script, so i started to study it :oops: then i found this symbol " -= " and i dont know what does it mean/do.

as i know:
" <> " not equal
"0 <= 1 " 0 greater than 1 or equal it
"0 => 1 " 1 greater than 0 or equal it
"0 = 1 " the strings are equal :doh:
but this " -= " i haven't seen it before :bye:

thanks.

Edit:
SOLVED>>

Source = http://www.autoitscript.com/wiki/Tutorial_Core_Language#Operators


Edited by Command3r, 16 March 2012 - 11:30 PM.

Sorry for my bad english, i'll improve it :)

-------------------------------------------------------

My advice to you: Search before posting.






#2 kor

kor

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 484 posts

Posted 16 March 2012 - 11:19 PM

Subtraction assignment. e.g. $var -= 1 is equivalent to $var = $var -1


Source = http://www.autoitscript.com/wiki/Tutorial_Core_Language#Operators

Edited by kor, 16 March 2012 - 11:20 PM.

  • Command3r likes this

#3 Command3r

Command3r

    Wayfarer

  • Active Members
  • Pip
  • 76 posts

Posted 16 March 2012 - 11:29 PM

o_O Thanks bro :oops:

Sorry for my bad english, i'll improve it :)

-------------------------------------------------------

My advice to you: Search before posting.


#4 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,076 posts

Posted 17 March 2012 - 02:36 AM

It seems, Command3r, you didn't follow your own advice from your signature :oops:

Edited by JLogan3o13, 17 March 2012 - 02:36 AM.

J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#5 Command3r

Command3r

    Wayfarer

  • Active Members
  • Pip
  • 76 posts

Posted 17 March 2012 - 02:59 PM

It seems, Command3r, you didn't follow your own advice from your signature :oops:


no no, i searched but i haven't got any useful results :bye:

Sorry for my bad english, i'll improve it :)

-------------------------------------------------------

My advice to you: Search before posting.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users