Low Caliber Club
Low Caliber Club
    Low Caliber Forum  Hop To Forum Categories  Red Carpet    Comparison Operators
Go
New
Find
Notify
Tools
Reply
  
Comparison Operators
 Login/Join
 
Treasurer
Picture of Unter den Uebrigen
posted
To answer your question, Dant': != and == are so-called "operators of comparison" (see Built-in operators).  != and == are useful in the comparison of x to y (negative and affirmative respectively); and are to be distinguished from so-called "operators of assignment", i.e. =, where the value of y is assigned to x.

Operators of comparison are a prompt for conditional action, whereas operators of assignment are a positive declaration.  Therefore:
if (bShepherdOfWives == true) {		// Condition
	iAnnuaryHaremBudget = 40000;	// Declaration
}


 
Posts: 1457 | Location: Altadena | Registered: Tue January 07 2003Reply With QuoteReport This Post
Treasurer
Picture of Unter den Uebrigen
posted Hide Post
Whoops; transferring..
 
Posts: 1457 | Location: Altadena | Registered: Tue January 07 2003Reply With QuoteReport This Post
Emeritus
Picture of Dante
posted Hide Post
sorry to pull the rug out under you, moved it to 'works' for more relevance.

actually i should look into my posting-editing habit.
 
Posts: 1258 | Location: "Auslander" | Registered: Wed May 21 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 

    Low Caliber Forum  Hop To Forum Categories  Red Carpet    Comparison Operators

© Low Caliber Club 2002-4
Gallery | Chat | Archive | Tutorials | Red Carpet

Constitution

Members

Forum

Stats

Wiki