Question5Replies53Views sainavyap Member since 2018 1 post accenture Posted: 7 months agoLast activity: 7 months 3 weeks ago Solved How to write a when condition to check if the clause code is same for previous and current occurrence?Currently we are printing clause wordings in a document.Every Clause code has a different clause wordings.these clause wordings should display according to the selected clasue code. Can anyone please help on it. Pega Academy ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Accepted Solution Posted: 7 months agoUpdated: 6 months agokanap2 PEGA replied to sainavyapPlease find the below steps:1) Create a Decision Table and store clause code and clause wordings.2) In a data transform by using a function call the above Decision table by passing clause code.And one more thing, for each clause code do we get multiple clause wordings? Posted: 7 months agoUpdated: 6 months agosainavyap accenture replied to kanap2Hi Kanap2, Thanks for the reply. No for each clause code we will have only 1 clause wording. This clause wording should be printed in a document depending on user selection.Will the above solution wrk for that ? Posted: 7 months agokanap2 PEGA replied to sainavyapYes, the above solution will work for that. Posted: 7 months agosainavyap accenture replied to kanap2Can u plz elaborate this ?What function do i need to use ?2) In a data transform by using a function call the above Decision table by passing clause code. Posted: 7 months agokanap2 PEGA replied to sainavyapPlease find the function below:@pxEvaluateDecisionTable(StepPageName,"DecisionTableName")Here you don't need to pass clause code, just pass the page and Decision table name, it will evaluate the decision table and set the Clause wording property on that page.