Search the Community
Showing results for tags 'conditional'.
Found 2 results
I've been tinkering with conditional expressions in Apply Image. Ideally you'd do something like (conditional-expression?A:B) so if conditional-expression (eg x>0.5) evaluates as true then the result is A otherwise B. But they are not natural, so my current thinking is: roundup(clamp(expression,0,1)) If expression evaluates as negative, then the result is 0 otherwise 1 (including if it is >1), so you then multiply the whole thing by what you want to actually end up with. The 'else' alternative would be found by adding a similar term with the expression reversed. eg. DR=roundup(clamp(SR-0.5,0,1))*SG+roundup(clamp(0.5-SR,0,1))*SB This should set red pixels to equal to green pixel if the red pixel < 0.5, otherwise it should be blue. This, for example, lets you play with DIY blend modes which flip formula either side of 0.5. Untidy, I know. Does it make sense? Any improvements?
InDesign has the feature of Conditional Text, where pieces of text can be marked and assigned to a "Condition". Turning these "Conditions" on or off will make all assigned text fragments show or hide. A good description in the InDesign manual is here. This functionality is extremely helpful for instance in price lists where there are different prices for different markets. Why not use Layers? Because with Conditional Text all other text besides the conditional versions will stay the same: only one text version to maintain. I could not (yet) find anything like this in Publisher. Does it have this functionality? Is it considered for the future? Thanks for any input!