Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 07-01-2009, 11:25 AM   #1
Solid State Member
 
Join Date: Jul 2008
Posts: 20
Default small question something = -1

When something like

INPUT = false

that mean there no input or input is turn off... if TRUE then it on...

what about

INPUT = -1

what that mean>?

thx
__________________

ksclans is offline   Reply With Quote
Old 07-01-2009, 11:30 AM   #2
Golden Master
 
sniperviper21's Avatar
 
Join Date: Apr 2009
Location: USA
Posts: 5,438
Default Re: small question something = -1

what are u talkin about? like a PLC, Ladder Logic, PLC logic, AND's and OR's or what?
__________________

__________________
You got to have a Fiddle in the band!
sniperviper21 is offline   Reply With Quote
Old 07-01-2009, 11:33 AM   #3
Solid State Member
 
Join Date: Jul 2008
Posts: 20
Default Re: small question something = -1

java scripts
ksclans is offline   Reply With Quote
Old 07-01-2009, 12:00 PM   #4
Site Team
 
celegorm's Avatar
 
Join Date: Sep 2006
Posts: 10,713
Send a message via AIM to celegorm
Default Re: small question something = -1

Typically, that is used to represent false or off. 0 is more common for that, but -1 is used when 0 is a possible input value.
__________________
"as a fanboy i refuse to admit it and will pull countless things out of my butt to disprove it"

Team Thelegorm! Total Kills: 21 (i iz in uor profile, editsing your sigz)
celegorm is online now   Reply With Quote
Old 07-01-2009, 12:18 PM   #5
Solid State Member
 
Join Date: Jul 2008
Posts: 20
Default Re: small question something = -1

ook thx, so to turn On or True it need to be 1 .. ok
ksclans is offline   Reply With Quote
Old 07-01-2009, 05:58 PM   #6
Baseband Member
 
Join Date: Jun 2009
Posts: 36
Default Re: small question something = -1

I'm not really familiar with JS, but sometimes -1 means NULL or undefined...which is different than off/false.
__________________

dmarciano is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:24 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0