Checks whether a label was found when parsing the file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(parser_obj), | intent(in) | :: | this |
Parser object |
||
| character(len=*), | intent(in) | :: | label |
label to look for |
Result
pure function parser_obj_IsDefined(this,label) result(found) !> Checks whether a label was found when parsing the file. implicit none class(parser_obj), intent(in) :: this !! Parser object character(*), intent(in) :: label !! label to look for logical :: found !! Result found=.false. if( this%FetchLabelID(label).ne.0) found=.true. return end function parser_obj_IsDefined