<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Perl 中的`unless-elsif`語句 > 原文: [https://beginnersbook.com/2017/02/unless-elsif-else-statement-in-perl/](https://beginnersbook.com/2017/02/unless-elsif-else-statement-in-perl/) 當我們需要檢查多個條件時,使用`unless-elsif-else`語句。在這個聲明中,我們只有一個`unless`和一個`else`,但我們可以有多個`elsif`。這是它的樣子: ```perl unless(condition_1){ #These statements would execute if #condition_1 is false statement(s); } elsif(condition_2){ #These statements would execute if #condition_1 & condition_2 are true statement(s); } elsif(condition_3){ #These statements would execute if #condition_1 is true #condition_2 is false #condition_3 is true statement(s); } . . . else{ #if none of the condition is met #then these statements gets executed statement(s); } ``` #### 例 ```perl #!/usr/local/bin/perl printf "Enter any number:"; $num = <STDIN>; unless( $num == 100) { printf "Number is not 100\n"; } elsif( $num==100) { printf "Number is 100\n"; } else { printf "Entered number is not 100\n"; } ``` **輸出:** ```perl Enter any number:101 Number is not 100 ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看