Previous: cond-conditions, Up: Conditionals [Index]
Here are some more useful examples for Conditionals in the configuration file:
IF DOS16 Swappath c:\temp\msged.swp ENDIF
IF OS2 Origin "Warp 4, Mister Sulu!" ELSEIF W32 Origin "My employer forces me to use Windows ..." ELSEIF DOS Origin "DOSwidanja!" ELSEIF UNIX IF LINUX Origin "Penguins ahead!" ELSE Origin "UNIX - a professional's choice" ENDIF ENDIF
IF UNIX ;By default, switch colors off (might cause problems with ;VT100 and xterm), as well as shadows (too slow) Switch Shadows Off Switch Colors Off IF TERM=linux ;The peculiarities of the Linux console ... switch bs127 on switch colors on ENDIF IF TERM=vt220 switch colors on ENDIF IF TERM=ansi switch colors on ENDIF ENDIF