rice class : ContainsComment(string) method
Description
Returns whether a named comment exists.
Syntax
riceInstance.ContainsComment(string commentName)
Arguments
Class | Name | Description |
string | commentName | Comment name. |
Return value
Class | Description |
bool | Whether a named comment exists. |
Sample code
1: | /**Sample**concat**----------------------- |
2: | This is a |
3: | sample. |
4: | -----------------------------------------------*/ |
5: | rice rr; |
6: | bool exists = rr.ContainsComment("Sample"); // exists is true. |
Notes
If the comment name exists, returns true. Otherwise, returns false.