<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KEINOS</author_name>
  <author_url>https://blog.hatena.ne.jp/KEINOS/</author_url>
  <blog_title>KEINOSの日記（旧ブログ）</blog_title>
  <blog_url>https://keinos.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>この記事は次のブログに引っ越しました。https://blog.keinos.com/20130417_895IF文の条件結果を変数や配列に代入する際に、コンパクトにまとめたい時は三項演算子と呼ばれる&quot;IIF&quot;文を使います。 sValue = IIf( i &gt; j, &quot;bigger&quot;, &quot;smaller&quot;) 上記は下記と同じ内容です。1行で済ませたい時に。 if( i &gt; j) Then sValue = &quot;bigger&quot; Else sValue = &quot;smaller&quot; End If PHPなどではよく使われます。変数の初期化時などで可読性を上げたい時にも。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkeinos.hatenadiary.org%2Fentry%2F20130417&quot; title=&quot;ExcelのVBAでIF文の代入を1行で記述する（三項演算子） - KEINOSの日記（旧ブログ）&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>2013-04-17 00:00:00</published>
  <title>ExcelのVBAでIF文の代入を1行で記述する（三項演算子）</title>
  <type>rich</type>
  <url>https://keinos.hatenadiary.org/entry/20130417</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
