<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>philojuan</author_name>
  <author_url>https://blog.hatena.ne.jp/philojuan/</author_url>
  <blog_title>恥は/dev/nullへ by 初心者</blog_title>
  <blog_url>https://uhoho.hatenablog.jp/</blog_url>
  <categories>
    <anon>MT4/MQL4</anon>
    <anon>C言語学習</anon>
  </categories>
  <description>MQLの勉強に役立つので、CやC++の本をたまに寝っ転がって読んでいます。Cの本を読んでいたら、if文やfor文の判定条件について、0以外は「真」として扱われるという記述がありました。 そこで、MQL4でも同じ仕様になっているのかScriptを使って調べてみました。 １．整数型の実験結果 void OnStart() { if(0) Print(&quot;0だよん&quot;); else Print(&quot;elseだよん&quot;); } 結果 elseだよん void OnStart() { if(1) Print(&quot;1だよん&quot;); else Print(&quot;elseだよん&quot;); } 結果 1だよん void OnSta…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuhoho.hatenablog.jp%2Fentry%2F2020%2F07%2F21%2F155012&quot; title=&quot;MQLの判定文はC言語と同じように動くのか？ - 恥は/dev/nullへ by 初心者&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-07-21 15:50:12</published>
  <title>MQLの判定文はC言語と同じように動くのか？</title>
  <type>rich</type>
  <url>https://uhoho.hatenablog.jp/entry/2020/07/21/155012</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
