require_scalar Function

private function require_scalar(node, key, context, problems) result(present_and_valid)

True if node has key holding a single value; otherwise records a problem.

Arguments

Type IntentOptional Attributes Name
type(cable_yaml_node_t), intent(in) :: node
character(len=*), intent(in) :: key
character(len=*), intent(in) :: context
character(len=:), intent(inout), allocatable :: problems

Return Value logical