CFMX will evaluate the contents of a variable output block to determine if it contains simple logic.
#1+1# is possible in CFMX, but not in previous versions. The best you can do in previous versions is something like this: #evaluate(int(invoice.ia_id)+1)# Effectively in MX you can drop the evaluate around the block. I haven't really tested to see if you can do anything you can do inside and evaluate() function call, and I wouldn't really recommend it as it won't work in previous versions, and may not be supported in future versions of CF. Spike > -----Original Message----- > From: Tim Blair [mailto:[EMAIL PROTECTED]] > Sent: 10 October 2002 13:11 > To: [EMAIL PROTECTED] > Subject: [ cf-dev ] CFMX -> CF5 > > > > Quick query, how come this: > > #int(invoice.ia_id) + 1# > > works in CFMX but not in CF5? I got it working by doing this: > > #evaluate("int(invoice.ia_id) + 1")# > > but it's not really how I wanted to play the game... > > Tim. > > > ------------------------------------------------------- > Tim Blair > Web Application Engineer, Rawnet Limited > Direct Phone : +44 (0) 1344 393 441 > Switchboard : +44 (0) 1344 393 040 > ------------------------------------------------------- > rawnet ltd > Atrium Court > Bracknell [EMAIL PROTECTED] > Berkshire Tel : +44 (0) 1344 393 040 > RG12 1BW, UK http://www.rawnet.com > ------------------------------------------------------- > This message may contain information which is legally > privileged and/or confidential. If you are not the intended > recipient, you are hereby notified that any unauthorised > disclosure, copying, distribution or use of this information > is strictly prohibited. Such notification notwithstanding, > any comments, opinions, information or conclusions expressed > in this message are those of the originator, not of rawnet > limited, unless otherwise explicitly and independently > indicated by an authorised representative of rawnet limited. > ------------------------------------------------------- > > > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] For human help, e-mail: > [EMAIL PROTECTED] > > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
