I can work up a demo if needed, but basically this is my tip:
1. create an object by typing a SPACE character on the layout. this will be "invisible".
2. set the fill color to black (or whatever color you need) - I say fill with color, so it's easier to find in Layout Mode
3. resize and reposition using Inspector (and/or manually) and LOCK, so that you don't accidentally type into the object again.
4. use Conditional Formatting to "hide" the object (change fill to none) based on your formula, for example
Left ( ID ; 1 ) ≠ 1 // HIDE when the value is NOT 1 - so it shows when the first character IS 1
Why this works:
Not all objects can use Conditional Formatting, but TEXT is one object that does. The space character is text, but shows nothing. Using the opposite of your test allows you to show the object if the condition is met.
(I do something similar - the space character - and set the conditional opacity to 25-50% of the background color when I want an overlay to "dim" an odd-shaped object underneath.)
If you need other shapes, then icon buttons may work as well with Conditional Formatting.
I got a similar answer last night in the main Discussions thread. A little simpler (I think one or two fewer mouse clicks), and also allowed me to use my rectangle shape rather than create a text object. There is a part of the Inspector window under the Data tab that says "Hide object when". I used a formula with similar syntax as yours to hide the object when the target field does not equal 1.
I am already using Conditional Formatting to change colors of scores (i.e. gold and bold when ranked first, silver and bold when ranked second, bronze and bold when ranked third), but I hadn't even thought of creating a "blank" text object with black fill and applying Conditional Formatting. I will definitely have to remember your thoughts on Conditional Formatting. It could definitely give me more flexibility in other situations than simply print or hide.
Ok, what is the link to that thread?
The advantage of the Conditional Formatting over "Hide object when", is that you can change more than fill (to none).