Definition of "Expedient" :
noun: a means to an end; not necessarily a principled or ethical one
adjective: serving to promote your interest
"Was merciful only when mercy was expedient."
adjective: appropriate to a purpose; practical
"In the circumstances it was expedient to express loyalty."