Please find the car code below to display images conditionally:
TABLE FILE CAR
PRINT
CAR
DEALER_COST
RETAIL_COST
SALES
BY COUNTRY
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET STYLE *
DEFMACRO=Condition_1, MACTYPE=RULE, WHEN=DEALER_COST GE 2000, $
DEFMACRO=Condition_2, MACTYPE=RULE, WHEN=DEALER_COST LT 2000, $
DEFMACRO=Condition_3, MACTYPE=RULE, WHEN=RETAIL_COST GE 14000,$
DEFMACRO=Condition_4, MACTYPE=RULE, WHEN=RETAIL_COST LE 5000,$
TYPE=DATA, COLUMN=DEALER_COST, MACRO=Condition_1, IMAGE=PATH OF THE GREEN LIGHT IMAGE FILE, $
TYPE=DATA, COLUMN=DEALER_COST, MACRO=Condition_2, IMAGE=PATH OF THE YELLOW LIGHT IMAGE FILE,$
TYPE=DATA, COLUMN=RETAIL_COST, MACRO=Condition_3, IMAGE=PATH OF THE GREEN LIGHT IMAGE FILE,$
TYPE=DATA, COLUMN=RETAIL_COST, MACRO=Condition_4, IMAGE=PATH OF THE YELLOW LIGHT IMAGE FILE,$
ENDSTYLE
END
-RUN
WebFOCUS 8.0.08 - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
Windows, All Outputs