Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assignment operator

Status
Not open for further replies.

alexander1113

Programmer
Dec 26, 2004
26
US
Hi,
In VB, do you guys know the meaning of this line of code?

variableX = ( "STRING" = "TEST")

?
 
The statement
x = a = b
is equivalent to, and much more concise than, the statement
if a = b then x = true else x = false

The parentheses, e. g.
x = (a = b)
only set off the statement, and are not necessary. So, what it's saying is evaluate a = b and assign the result to x.

HTH

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top