htools: Add if' and select as functions