Search:  

 
   All ForumsHot TopicsGallery
 
Forums » User Groups » Companies beginning with P » ProLog » If-else in PRolog
Search Topic:
Uniqs:
20
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Post a:
Post a:
AuthorAll Replies

navred

join:2005-02-12

If-else in PRolog

HI, please help me in writing function for the following in prolog:

I want to write a function in prolog for the if-else statement.
For ex,
if-instantiated( X,X) else if-instantiated (Y,Y) else if-instantiated( X^Y, concat(X,Y):-
If the attribute X is instantiated( holds some value) then write X, else if the attribute Y holds some value then write Y, else if both the attributes X and Y hold some values, then append X and Y and write them.
I know how to write the concat function. But I am unaware of writing the function for the above if-else rule. please help me.
Thanks in advance,
SUDHA.P
Forums » User Groups » Companies beginning with P » ProLog


Friday, 05-Dec 04:32:04 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9 years online! © 1999-2008 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [125] AT&T Metered Billing Trial Hits Second Market
· [97] UDP BitTorrent Will Destroy The Interwebs!
· [96] AT&T Cutting 12,000 Jobs
· [94] Exclusive Screens Of Comcast's New Bandwidth Meter
· [90] EFF Challenges Telecom Immunity
· [83] Firefox Extension Leads Amazon Customers To Pirated Alternatives
· [82] Scott Cleland: Google Using 21x The Bandwidth They Pay For
· [63] Apple: Who Believes Our Ads Anyway?
· [62] Comcast Tries To Slow Verizon's Philly Entry
· [61] Comcast To Offer Bandwidth Use Tracker In January
Most people now reading
· Level 80 PVP gear info? [World of Warcraft]
· Extjs grid combo box. [Webmasters and Developers]
· Coalition Government Possible? [TekSavvy]
· Notice, new uTorrent Alpha may be able to evade throttling [TekSavvy]
· [WotLK] Starting the Rep Grind [World of Warcraft]
· Adventures in Bell... a Teksavvy production... [TekSavvy]
· [WotLK] WotLK Instance Order? [World of Warcraft]
· Setting up TekSavvy with IMAP [TekSavvy]
· AT&T U-Verse Router [AT&T U-verse]
· [Rant] People bitching about Best Buy [Rants, Raves, & Praise]