Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 2.69 KB

File metadata and controls

35 lines (24 loc) · 2.69 KB

header_index()

Header index

Looks up a header index by header name. e.g. header_index("firstname") returns 0 when the "firstname" header is first. header_index("lastname", 1) returns True if the "lastname" header is second.

If given an expected result as a 2nd argument the return is True/False on the match of expected to actual

If no value is provided, header_index() is an existance test for the header, not a check for the line having a value for the header.

Data signatures
header_index( header identity: $${\color{green}str}$$ ǁ $${\color{green}int}$$, [value check: $${\color{green}None}$$ ǁ $${\color{green}Any}$$ ǁ ''] )
Call signatures
header_index( header identity: Term ǁ Function ǁ Variable, [value check: Term] )
Purpose Value
Main focus header_index() produces a calculated value
Context Qualifier
Match qualifiers onmatch
Value qualifiers onmatch

[Back to index]