question on ifThenElse
Andreas Unterkircher <[email protected]> Mon, 29 Jan 2007 14:27:04 +0100
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Organization | CERN |
| Message-ID | <[email protected]> |
Hello,
I'd like to give values to one (better: several) attributes based on the
value of one attribute. My first thought was to do this with ifThenElse,
i.e. something like:
kernelSelector extends ifThenElse {
kernel;
linuxFlavor;
if (linuxFlavor == "debian");
then kernel "xyz";
if (linuxFlavor == "redhat);
then kernel "abc";
}
oneOS extends kernelSelector {
linuxFlavor "debian";
}
This does not work because - I think - ifThenElse can only assign to the
attribute in the "if (...)" clause ? Furthermore I'd like to define the
values of more than one attribute based on the value of one
(linuxFlavor). I there some other way to do this in the SF language ?
Thanks,
Andreas
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV