As you can see, state records have a name field, so SupName = State#state.name is just treating the State tuple as a state record, plucking out whatever field corresponds to name , and saving that in SupName .