<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	【基本】python : 条件判定文(if)の使用パターンと使用例 へのコメント	</title>
	<atom:link href="https://pasopet.com/if_stmt_cond_variation/feed" rel="self" type="application/rss+xml" />
	<link>https://pasopet.com/if_stmt_cond_variation</link>
	<description>古参ITエンジニアがいろいろやります！</description>
	<lastBuildDate>Mon, 17 Aug 2020 13:45:49 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>
		ぼお より		</title>
		<link>https://pasopet.com/if_stmt_cond_variation#comment-2</link>

		<dc:creator><![CDATA[ぼお]]></dc:creator>
		<pubDate>Sat, 15 Aug 2020 12:59:36 +0000</pubDate>
		<guid isPermaLink="false">https://pasopet.com/?p=1724#comment-2</guid>

					<description><![CDATA[以下のご質問あり。

全然わかっていないのに質問させていただきますが、
Excelでもifってありますが、同じ考え方なのでしょうか。

【回答】
同じですね。
構文は違っていて
Excelの場合は、

=IF(&lt;条件&gt;,&lt;①&gt;,&lt;②&gt;)

になっています。

pythonでは以下になります。他のPG言語も同様です。

if &lt;条件&gt; :
  &lt;①&gt;
else :
  &lt;②&gt;

ちなみに、
上記のExcelの記述は、
Excelのセル内に記載する”関数”です。

Excelの場合、さらに　マクロ機能で
VBAというPG言語が書けますが、
そこでは、pythonと類似した記述で
同じことができます。]]></description>
			<content:encoded><![CDATA[<p>以下のご質問あり。</p>
<p>全然わかっていないのに質問させていただきますが、<br />
Excelでもifってありますが、同じ考え方なのでしょうか。</p>
<p>【回答】<br />
同じですね。<br />
構文は違っていて<br />
Excelの場合は、</p>
<p>=IF(<条件>,<①>,<②>)</p>
<p>になっています。</p>
<p>pythonでは以下になります。他のPG言語も同様です。</p>
<p>if <条件> :<br />
  <①><br />
else :<br />
  <②></p>
<p>ちなみに、<br />
上記のExcelの記述は、<br />
Excelのセル内に記載する”関数”です。</p>
<p>Excelの場合、さらに　マクロ機能で<br />
VBAというPG言語が書けますが、<br />
そこでは、pythonと類似した記述で<br />
同じことができます。		</p>
<div class="wpulike wpulike-default ">
<div class="wp_ulike_general_class wp_ulike_is_not_liked"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="2"
					data-ulike-nonce="4368ead734"
					data-ulike-type="comment"
					data-ulike-template="wpulike-default"
					data-ulike-display-likers=""
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_comment_btn_2"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div>
</div>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
