more than two conditions in an %if statement - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2011

    more than two conditions in an %if statement


    I am trying to execute some functionality if the ov version is one of 3 possible values.

    the following %if statement fails on the third condition (AS5.6). i.e. if the Os is either As5.3 or AS5.4 then the %if statement is executed correctly. the third condition is always ignored even when the os version is AS5.6.

    Is there some kind of limit on the number of conditions in an %if statement.

    %if "%_os_ver" == "AS5.3" || "%_os_ver" == "AS5.4" || "%_os_ver" == "AS5.6"

  2. #2
    Join Date
    Jul 2011

    Re: more than two conditions in an %if statement

    Can you show more of the code, like also including some lines after?

Similar Threads

  1. why we get 0 for both conditions in shell scripting.?
    By rahulvishwa in forum Using Fedora
    Replies: 1
    Last Post: 8th June 2011, 08:36 AM
  2. Python with statement
    By IHeart SymLinks in forum Programming & Packaging
    Replies: 1
    Last Post: 30th March 2011, 07:35 PM
  3. Replies: 9
    Last Post: 8th April 2010, 03:33 AM
  4. Difficult conditions for installation
    By Xinef in forum Installation, Upgrades and Live Media
    Replies: 7
    Last Post: 25th April 2008, 10:22 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts