Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!wubios!phil From: phil@wubios.wustl.edu (J. Philip Miller) Newsgroups: comp.mail.elm Subject: Conditional Statements in elmrc Message-ID: <967@wubios.wustl.edu> Date: 13 Nov 89 23:34:45 GMT Sender: phil@wubios.WUstl.EDU (J. Philip Miller) Reply-To: phil@wubios.UUCP (J. Philip Miller) Organization: Washington University (St. Louis) Lines: 25 I find that there are certain defaults that change for me depending on where I am, e.g. when I am at work I want the Print command on the main menu to print on the system printer, when I am out of town, I have an alternative for sending the stuff back to my PC. Wanting differing options on the PAGER is another. Now of course I can go to the options window and change these, but I tend to mess things up too much :-) I thought about just adding some code to .login to copy the appropriate file to .elm/elmrc, but then begin to think about what might happen if I had multiple sessions going :-( My next, great idea was to invent a syntax in elmrc which would allow a conditional assignment, depending on the value of variables in the environment. This later design seemed to answer all of the dreams that I could conjure up since I could also do things on a temporary basis as part of a script as well as vary things by where/when I was logged onto my system. Has anyone else had strange dreams like this? -phil -- J. Philip Miller, Professor, Division of Biostatistics, Box 8067 Washington University Medical School, St. Louis MO 63110 phil@wubios.WUstl.edu - Internet (314) 362-3617 phil@wubios.wustl - bitnet uunet!wucs1!wubios!phil - UUCP C90562JM@WUVMD - alternate bitnet