You need to look up the usage of "Text Variables"
I will try that.
but can you tell me the syntax in vb.net?
because as I know text variables are used for headers and footers.
how can I use to apply conditions on text and hide the text?
I don't believe they are restricted to header/footer only, but it sounds you need something else anyway. Can you give an example of what are you trying to do?
I have created a conditional text in indesign. Which I am using to highlight a particular paragraph in the page.
I want to do this all through vb.net instead of doing it manually.
How to do that?
Here is a small syntax:
Dim idcnd As InDesign.ConditionalTextPreference = iddoc.ConditionalTextPreferences.ActiveConditionSet
Is this the correct one to define a conditional text and then apply it?