ENsetpremiseindex function

Sets the index of an object in a premise of a rule-based control