<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tattyu</author_name>
  <author_url>https://blog.hatena.ne.jp/tattyu/</author_url>
  <blog_title>tattyu's blog</blog_title>
  <blog_url>https://tattyu.hatenablog.com/</blog_url>
  <categories>
    <anon>program</anon>
    <anon>Lua</anon>
  </categories>
  <description>exp and val1 or val2expがtrueならval1、falseならval2を返す。 trueとfalseを返すような使い方をすると難しいけど、(val1がfalseだとval2が選択されてしまう）そういう使い方しなければ便利。 expがtrue val1(nil,false以外)が選択され、orは左の項がfalseかnilでなければ左の項を選択するので結果としてval1を得る true and val1 or val2 ↓ val1 or val2 ↓ val1 expがfalse(nil) and演算子はfalse/nilの時は左の項つまりfalse/nilが選択されるがo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftattyu.hatenablog.com%2Fentry%2F20070821%2Fp1&quot; title=&quot;2項演算子を使った3項演算子風実装 - tattyu&amp;#39;s blog&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>2007-08-21 00:00:00</published>
  <title>2項演算子を使った3項演算子風実装</title>
  <type>rich</type>
  <url>https://tattyu.hatenablog.com/entry/20070821/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
