VBscript equivalent to 'clamp ' 2004-07-01 - By OO's mailbot
Back There's also
//JScript value = Math.min(max, Math.max(min, value));
OO
On Jul 1, 2004, at 9:13 PM, Bradley Kachel wrote:
> Thanks Kim > Better time then ever to learn jscript. > >> Consider using jscript, vbscript is more pants than an army laundry > > Haha, nice saying ;) > > >> From: "kim aldis" <kim@(protected)> >> Reply-To: XSI@(protected) >> To: <XSI@(protected)> >> Subject: RE: VBscript equivalent to 'clamp' >> Date: Thu, 1 Jul 2004 11:36:02 +0100 >> >> If then else in vbscript >> >> Jscript: >> >> t = t>max ? max : t >> t = t<max ? max : t >> >> >> Consider using jscript, vbscript is more pants than an army laundry >> >> >> > -- --Original Message-- -- >> > From: owner-xsi@(protected) >> > [mailto:owner-xsi@(protected)] On Behalf Of Bradley Kachel >> > Sent: 01 July 2004 11:03 >> > To: XSI@(protected) >> > Subject: VBscript equivalent to 'clamp' >> > >> > Hi guys, >> > >> > Anyone know the VB script equivalent to Mel script's 'clamp' >> command. >> > (so to only take into account the specified value range Eg, -1, 1) >> > >> > Thanks Heaps, >> > >> > Brad K >> > >> > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ >> > SEEK: Now with over 50,000 dream jobs! Click here: >> > http://ninemsn.seek.com.au?hotmail >> > >> > --- >> > Unsubscribe? Mail Majordomo@(protected) with the following >> > text in body: >> > unsubscribe xsi >> > >> > >> > >> >> >> >> --- >> Unsubscribe? Mail Majordomo@(protected) with the following text in >> body: >> unsubscribe xsi > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ > Get a Virgin Credit Card and win an adventure: > http://ad.doubleclick.net/clk;8661322;9498324;s?http:// > www.promo.com.au/virgincreditcard/firstbirthday/track.cfm?source=N92 > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in > body: > unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|