On 01 Feb 2005 12:41:25 +0100, Uwe Pross wrote: > > On 29 Jan 2005 at 14:26:03 +1100, Scott Smedley wrote: > > > Further examples are available at: > > > > http://users.tpg.com.au/users/scottie7/tmp/config.if > > > > ... > > > > Any comments/criticism most welcome. > > AddToMenu my_menu > if ! ShellCmd /opt/myprogram > + "My Program menu" Menu my_program_menu > endif > > This should be possible.?
Well, strictly speaking. you may already do this intuitively: AddToMenu my_menu Test (x myprogram) + "My Program menu" Menu my_program_menu Similarly, you may already implement any need for if-else using TestRc. But I do agree that in the general case, the real if-else-elsif-endif syntax is a better (more intuitive) attempt at scripting than TestRc, functions and Break. Well, this new syntax is very similar to the one suggested in the thread: http://www.hpc.uh.edu/fvwm/archive/0108/msg00044.html At that time the short construct made sence, now it is already possible. This patch seems to be good and complete overall. It may be applied later (probably after 2.6.0, if we want to ever release it). Regards, Mikhael. -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]