$(document).ready(function () { $('#slick-id{data.uid}').slick({ autoplay: {f:if(then: 'true', else: 'false', condition: data.pi_flexform.autoplay)}, autoplaySpeed: {data.pi_flexform.autoplaySpeed}, infinite: true, dots: true, speed: 800, touchThreshold: 25, cssEase: 'cubic-bezier(0.455, 0.03, 0.515, 0.955)', useTransform: true }); });