The adjective optional means “optional”, “not mandatory” or “optional”.
The term describes a possibility that can be considered, but which does not necessarily have to be chosen. One could also say if necessary, because the term often occurs when alternatives are presented that could be chosen.
Optional has its origins in Latin and comes from optio (free will). The corresponding noun is the option, while the opposite meaning is mandatory.