If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Life of (Triggering unit)) / (Max life of (Triggering unit))) Equal to 1.0
Then - Actions
Floating Text - Create floating text that reads "100%" above (Triggering unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Percentage life of (Triggering unit)) Equal to 0.00
Then - Actions
Floating Text - Create floating text that reads (String((Integer(((Life of (Triggering unit)) / (Max life of (Triggering unit))))))) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Else - Actions
Floating Text - Create floating text that reads (String((Integer(((Life of (Triggering unit)) / (Max life of (Triggering unit))))))) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency