CLSN-2020 move conditions directive on server side

Output Expression and Condition Expression separated and some logic added