to_bidirectional_direction_string

stringtools.to_bidirectional_direction_string(argument)

Changes argument to bidirectional direction string.

>>> stringtools.to_bidirectional_direction_string('^')
'up'
>>> stringtools.to_bidirectional_direction_string('_')
'down'
>>> stringtools.to_bidirectional_direction_string(1)
'up'
>>> stringtools.to_bidirectional_direction_string(-1)
'down'

Returns argument when argument is ‘up’ or ‘down’.

Returns string or none.