#navi(../)


* PowerShellの比較演算子 [#a9b639f2]


PowerShellの比較演算子を記します。~
(C, C#, VBでは<, >, <=, >= ==になります。)


#contents
#htmlinsertpcsp(win-top.html,win-sp.html)

* 関連記事 [#mc649411]
-[[PowerShellの比較演算子一覧>PowerShell/PowerShellの比較演算子一覧]]
-[[PowerShellで数値の比較を行う比較演算子の一覧>PowerShell/数値の比較を行う比較演算子の一覧]]
-[[PowerShellのif文でand,or,xor,notを記述する方法>PowerShell/PowerShellのif文でand,or,xor,notを記述する方法]]

* 比較演算子一覧 [#x669e7a5]

下表に記す文字列により、数値比較ができます。
|''記号''|''比較内容''|''備考''|
|-eq|等しいかをチェック 数値 = 数値|''eq''ual|
|-ne|異なるかをチェック 数値 ≠ 数値|''n''ot ''e''qual|
|-lt|数値 < 数値をチェック|''l''ess ''t''han|
|-le|数値 ≦ 数値をチェック|''l''ess than or ''e''qual|
|-gt|数値 > 数値をチェック|''g''reater ''t''han|
|-ge|数値 ≧ 数値をチェック|''g''reater than or ''e''qual|



#htmlinsertpcsp(win-btm.html,win-sp.html)

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS