dm_btoa Function

public pure function dm_btoa(l, true, false) result(str)

Returns either argument true or false as allocatable character, depending on the value of logical value l. The result is trimmed.

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: l

Logical value.

character(len=*), intent(in) :: true

Return value on .true..

character(len=*), intent(in) :: false

Return value on .false..

Return Value character(len=:), allocatable

Returned string.