Create conditions with javascript?

Is there a way to create conditions dynamically?

I need to create multiple subquery’s based on each record in another model.

This might be of help!

skuid.$M(‘ModelName’).getConditionByName(‘ConditionName’).values = ‘values’;