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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do there is Conditional in Delphi?

Status
Not open for further replies.

jbpelletier

Programmer
Sep 8, 2001
232
CA
Hi,

I tried to find a Conditional in delphi but i think there is none.. i am right? Im not looking for an if then else statement..

I need the equivalent in Delphi of one those in other language..

C/C++/Java : MyVar=((Condition)ResultIfTrue:ResultIfFalse);
Paradox(ObjPal) : iif

jb
 
Ah, you mean a conditional expression.

I'd answer, but I'm here with very basic questions re. Delphi myself
 

if a > b then MyVar := 0
else MyVar := 1;

regards

In delphi write in your form the word if, highlight it and press F1, the help file will give an explanation about if

Regards S. van Els
SAvanEls@cq-link.sr
 
Hi
Do you mean the 'C' construct Z = (A) : X ? Y;
where Z becomes equal to X if A is true, otherwise it become equal to Y.

No there is nothing as horrible as that in Delphi/Pascal.

Steve.


 
tanx steve..
maybe u find it awfull but it's very usefull for me..
anyway ill deal with it
jb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top