Hey PowerShell Guy : How Can I Tell Whether a Number is Even or Odd?
Function check-even ($num) {[bool]!($num%2)}
PoSH>check-even 12
True
PoSH>check-even 13
False
Enjoy,
Greetings, /\/\o\/\/
Tags : Monad PowerShell
October 2005 November 2005 December 2005 January 2006 February 2006 March 2006 April 2006 May 2006 June 2006 July 2006 August 2006 September 2006 October 2006 November 2006 December 2006