Radified Community Forums
Rad Community Non-Technical Discussion Boards >> The Water Cooler >> programming 'expressions'

Message started by Rad on Jan 1st, 2011 at 6:47pm

Title: programming 'expressions'
Post by Rad on Jan 1st, 2011 at 6:47pm
when programmers use the term 'expressions,' is it true that they are generally referring the LOGICAL expressions, by which I mean if-else statements or some variation of the if-else statement?

Title: Re: programming 'expressions'
Post by MrMagoo on Jan 2nd, 2011 at 3:18pm
No, that's not quite the right idea for an expression.  An expression is a statement or set of statements that returns a value.  A simple expression is 2+2, which returns 4.  The value returned doesn't have to be numeric.  1==1 is an expression which would return 'true' (a boolean data type.) 

if-else statements are going to make logical decisions in your program.  By themselves, they aren't going to pass back a value. 

The Wikipedia page on expressions is mildly helpful.


Title: Re: programming 'expressions'
Post by Rad on Jan 4th, 2011 at 6:21pm

Yeah, I first went there to the Wikipedia page. Wasn't clear to me.

Title: Re: programming 'expressions'
Post by Richie on Sep 6th, 2011 at 8:53am
I'm just starting to study programming and your explanation made a lot of stuff clear. Thanks!
I and [url=http://][/url] are inseparable!

Title: Re: programming 'expressions'
Post by Marc Colby on Nov 15th, 2011 at 6:31am
If you have any doubt in Expression and Logical operator so you can use two links.



Title: Re: programming 'expressions'
Post by Rad on Nov 15th, 2011 at 11:10am
ooh, i like the link to wikipedia's spam page:


very nice.

also thanks for the links, MC.

Radified Community Forums » Powered by YaBB 2.4!
YaBB © 2000-2009. All Rights Reserved.