Anil Varma:
I want to return(true), if either one condition is true, else return(false).
I want to return(true), if either one condition is true, else return(false).
return(cCPRM15.rangeR2_R1(CPRD01,j,k) || cCPRM15.rangeR1_Top(CPRD01,j,k));
Anil Varma:
Do you mean XOR/exclusive OR?
Hello Friends
I am stuck with a following if condition!!!
I want to return(true), if either one condition is true, else return(false).
I have tried using && operator too, but it is always returning [false]
Please point out, where I am doing wrong.
Thanks and regards.
Anil Varma #:
Requirement is as below ...
if one of the two conditions is true, --> return(true)
if both conditions not true --> return(false)
if ( cCPRM15.rangeR2_R1(CPRD01,j,k) || cCPRM15.rangeR1_Top(CPRD01,j,k) ) { return(true); } else { if ( !cCPRM15.rangeR2_R1(CPRD01,j,k) && !cCPRM15.rangeR1_Top(CPRD01,j,k) ) { return(false); } return(true); }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello Friends
I am stuck with a following if condition!!!
I want to return(true), if either one condition is true, else return(false).
I have tried using && operator too, but it is always returning [false]
Please point out, where I am doing wrong.
Thanks and regards.