Hi Guru's,
Can somebody help me to understand what the following conditional statement means:
if (hour==0 and minute==0 and sec==10) then ....
Thanks.
Printable View
Hi Guru's,
Can somebody help me to understand what the following conditional statement means:
if (hour==0 and minute==0 and sec==10) then ....
Thanks.
the original conditional statement is
sec==10 and minute==0 and hour==0 ? H2S_Kamin1und2:fSum[hist 1]+ifinvalid(H2S_Kamin1und2,0)
Apart from the condition part the rest statement is clear to me.
Still not C++ since C++ doesn't use 'and'
if you meant && instead of 'and'
then what's here is a terniary operation
which basically means.
<condition> ? <execute this when condition is true> : <execute this when condition is false>
the condition itself seems to test if the time (hour/minute/sec) is 10 seconds past midnight.
Maybe it's a time internal, and not a time. In this case it could mean that exactly 10 seconds have passed since some event. It all depends on the context.
As for 'and', one can do:
and then user it like that. But I guess the line is not correct. ;)Code:#define and &&