Fedora Linux Support Community & Resources Center
Old 11th October 2011, 01:18 PM
PatMcDonagh Offline
Registered User
Join Date: Oct 2011
Posts: 8
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"
Reply With Quote
Old 8th November 2011, 11:50 PM
ndowens Offline
Registered User
Join Date: Jul 2011
Posts: 8
Re: more than two conditions in an %if statement

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

%if, conditions, statement

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
why we get 0 for both conditions in shell scripting.? rahulvishwa Using Fedora 1 8th June 2011 08:36 AM
Python with statement IHeart SymLinks Programming & Packaging 1 30th March 2011 07:35 PM
Need Help Getting to Run Level 3... under certain conditions HMSS013 Using Fedora 9 8th April 2010 03:33 AM
Difficult conditions for installation Xinef Installation, Upgrades and Live Media 7 25th April 2008 10:22 AM

Current GMT-time: 13:05 (Tuesday, 22-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat