MT4编程问题求教:expression not boolean如何解决?

 
楼主  收藏   举报   帖子创建时间:  2020-01-01 15:08 回复:0 关注量:221
各位大神,以下程序编释时会出现:expression not boolean。请问如何解决?
bool is_leap_year(int ai_0) {
   if (MathMod(ai_0, 100) == 0.0 MathMod(ai_0, 400) == 0.0) return (TRUE);
   else {
     if (MathMod(ai_0, 100) != 0.0 MathMod(ai_0, 4) == 0.0) return (TRUE);
     else return (FALSE);
   }
}

if (MathMod(ai_0, 100) !== 0.0 MathMod(ai_0, 4) == 0.0) return (TRUE);
     else return (FALSE);
   }
}
少了个等号 。
mary1331 发表于 2019-7-28 23:45
if (MathMod(ai_0, 100) !== 0.0 MathMod(ai_0, 4) == 0.0) return (TRUE);
     else return (FALSE) ...
好象不是这个原因哦。
打赏