Jump to content
Larry Ullman's Book Forums

Creating Variables Within Conditionals


Recommended Posts

My beginners mind is just puzzled by the building of the variable 'birthdate' in the examples on page 126.

 

"birthdate" is created from the concatenation of three pieces of data.

 

However, there appears to be no explicit statement doing the concatenation.

 

Instead "birthdate" is equated to a different variable in each of the three conditional statements. Given that a variable can be changed on the fly I expected that the value of "birthdate" would change each time it was restated.

 

Obviously I'm missing something or there is something implicit in the conditionals that does the concatenation.

 

Why does the concatenation take place?

 

Any pointers to references or online explanations would be appreciated.

Link to comment
Share on other sites

 Share

×
×
  • Create New...