Conditional formatting

Discuss the powerful Explorer Templates used in the CAT programs
Post Reply
Posts: 21
Joined: Sat Aug 22, 2015 7:53 pm

Conditional formatting

Post by Johnnyt » Wed Dec 26, 2018 4:30 pm

I am sorry for double posting, but I suspect I should have postet under this topic in the first place, and not under "Using StampCAT".
Maybe moderator can remove posting in "Using StampCAT" if inappropriate.

I guess this applies to any Cat-app if it is doable or not.
I have three date fields in my StampBrowse.xsl. For two of the date fields I want to compare them against the third one. Thereafter I want to highlight and change color to let say green if my conditions kicks in. Conditions goes like this:
If Custom31 has higher (newer) date than PostmarkDate, then highlite (bold) and change color to green for the PostmarkDate.
Or if Custom32 has lower (older) date than PostmarkDate, then highlite (bold) and change color to
blue for the PostmarkDate.
If doable can someone please help me with the code?
Dedicated user of

User avatar
Alex Ivanovich
Posts: 313
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: Conditional formatting

Post by Alex Ivanovich » Fri Jan 11, 2019 9:48 am

Hi Johnnyt ;)

You could insert sample screenshots to understand what you want to see :roll:
I do not use StampCA (I have to install it) :|
I use BookCat (and CATVids), I have something similar in the code (modified) ;)

Post Reply