P:=5;
G1:=TROUGHBARS(3,P,1);
G2:=TROUGHBARS(3,P,2);
F1:=PEAKBARS(3,P,1);
F2:=PEAKBARS(3,P,2);
JG:=REF(C,G1);
YG:=REF(C,G2);
JF:=REF(C,F1);
YF:=REF(C,F2);
XG:JG>YG AND JF
P:=5;
G1:=TROUGHBARS(3,P,1);
G2:=TROUGHBARS(3,P,2);
F1:=PEAKBARS(3,P,1);
F2:=PEAKBARS(3,P,2);
JG:=REF(C,G1);
YG:=REF(C,G2);
JF:=REF(C,F1);
YF:=REF(C,F2);
XG:JG>YG AND JF