I have got a scenario that I put some conditions in EnableRule field in rendering variant field. If rule is true then it should render mapped field value and if false it should render some default value.
I tried below code
var personalization = Tracker.Current?.Interaction?.CurrentPage?.Personalization;
But looks like this code is for personalisation rule on renderings and does not work for EnableRule field.
Can anybody suggest how to check whether EnableRule field value is true or false?