según
/seˈɡun/ · A2 · prep
according to
según = seguir (to follow): following what someone says
From Latin secundum, following, the same root as seguir and English second and sequence. Según Ana = following Ana's word, so according to Ana. Depending on is the same idea: the outcome follows the condition.