function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

dynamic image display based on conditions In Lightning component


Total Numer of Case=19

Case with Overtime=16


16/19,,so Green Arrow Image display in Lightning Component APP

if its 

20/19  (Or more),,,red arrow image should display in LIGHTNING COMPONENT UI

Any Resource 
Any Trailhead link will be very helpful for me

thanks in advance
SwethaSwetha (Salesforce Developers) 

To display a dynamic image in a Lightning component based on certain conditions, you can use the <aura: if> tag in the component markup to conditionally render an image based on the values of the conditions. You can set the values of these attributes dynamically using a controller or helper method to calculate the values based on the number of cases with overtime.

Make sure to upload the green and red arrow images as static resources in your Salesforce org.

Please see related: