View Single Post
Old 01-13-2014, 05:01 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,460
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by tarisea View Post
Chaley that's perfect.

Just purely out of curiosity is it possible to take this one step further?

#column1 - numeric value
#column2 - fixed set of values, but only 1 is relevant here
#column3 - date

Is it possible to:

If #column1 >1 AND #column2=blue then {#column3:format_date(MMyy)} otherwise blank

Just pushing my luck. Tired of doing things manually.

Thanks
Code:
program: cmp(
	field('#column1'), 
	1, 
	'', 
	'', 
	strcmp(
		field('#column2'), 
		'blue', 
		'',
		format_date(field('#column3'), 'MMyy'), 
		''
		))
chaley is offline   Reply With Quote