Is Conditional statements available in CSS
Posted: Mon Jan 23, 2017 10:01 am
Hi Team,
I am using oXygen Author 18 with Eclipse plugin.
For my customization I need to have generated text for <troubleshooting> topic. Consider an element 'x' . In x/cause/title I should have "Cause" generated text in the below scenarios:
1) It should have "Cause" generated text when <x> is inserted and <cause> is given it.
And also it should have "Cause" generated text when <x/cause> is inserted and <title> is given it without any content in it(<title> is empty).
2) It should not have generated text when <x/cause> is inserted and <title> is having some content in it.
So for this condition is it possible to have If-else (conditional statement) in CSS? If yes, please provide the code.
Thank you!
Regards,
Mounika
I am using oXygen Author 18 with Eclipse plugin.
For my customization I need to have generated text for <troubleshooting> topic. Consider an element 'x' . In x/cause/title I should have "Cause" generated text in the below scenarios:
1) It should have "Cause" generated text when <x> is inserted and <cause> is given it.
And also it should have "Cause" generated text when <x/cause> is inserted and <title> is given it without any content in it(<title> is empty).
2) It should not have generated text when <x/cause> is inserted and <title> is having some content in it.
So for this condition is it possible to have If-else (conditional statement) in CSS? If yes, please provide the code.
Thank you!
Regards,
Mounika