[REBOL] Re: How to detect type of OS
From: rotenca:telvia:it at: 8-Jul-2002 1:21
Hi Gregg> There are win? and unix? system words, but I don't know what context they > live in to make use of them.ctx-prefs is-win?: does [system/version/4 = 3] is-mac?: does [all [system/version/4 = 2 system/version/5 <= 3]] is-unix?: does [not any [is-win? is-mac?]] win?: func [val] [if is-win? [val/data]] unix?: func [val] [if is-unix? [val/data]] --- Ciao Romano