Forum Discussion
Commenting in External Datagroup
Hi,
I've just seen the use of commenting (preceding hash) in Data Groups (External in this case) in a client's environment. Having not come across this or considered using this previously for reasons that have always seemed obvious to me (i.e. the records won't be omitted. They will be parsed), I'm now questioning and want to be certain.
Will the class command intepret everything in the string as I expect (as a pure string) or will the hash actually comment out / omit the line?
Thanks
- AP
Nimbostratus
EDIT: Actually just noticed that the hash is outside the double quote. So:
"host.xyz/uri1" := "internalhost.xyz/uri2",
Slightly different since the Class command wouldn't even see the Hash. My doubt still remains however, does the hash have any bearing on how the external data group is parsed?
- AP
Nimbostratus
I got around to testing this out. The answer is that the preceding hash does effectively "comment" out a record in an external datagroup. At least in a string external datagroup. I didn't test other types.
So a class command will not return a name or value if the line begins with a .
e.g.
"/uri1" := "hash",
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com