Definition of logic
reasoning conducted or assessed according to strict principles of validity.
Double meaning
a system or set of principles underlying the arrangements of elements in a computer or electronic device so as to perform a specified task.
Both serve our purpose..