checks if A is boolean
isbool=moc_islogical(A)
true for boolean variables
vector or matrix
moc_islogical checks if A is boolean