Re: [Qgis-user] Current item @value in expressions

2016-04-06 Thread Neumann, Andreas
Hi Enrico, I can't tell why this expression fails, but there is a more elegant way to distinguish between even and odd numbers. The modulus operator (%). CASE WHEN @atlas_featurenumber % 2 = 0 THEN --these are the even pages 210 - @value ELSE --these are the odd pages @value END The

[Qgis-user] Current item @value in expressions

2016-04-06 Thread Enrico Ferreguti
Is there a way to get the current item value that is being modified by expressions. I would like to reformat my print composer atlas for two sided printing referencing to @value variable without success: CASE WHEN floor( @atlas_featureid/2 )*2 = @atlas_featureid THEN 210 - @value ELSE @value