// Get values from the system parameters const currentStock = Number("{STOK}"); // Ensure you use the correct stock parameter name const categoryName = "İkili Pantolonlu Takım"; // The logic: // 1. Is there stock? // 2. Or is it the "Abiye" category? if (currentStock > 0 || categoryName.trim() === "Abiye") { // Logic to SHOW the model console.log("Showing model:", "3616,3617,3618,3620,3621,3622"); } else { // Logic to HIDE the model // If you are inside a loop, you might need: return; or continue; // Or if you are hiding an HTML element: // document.getElementById("3616,3617,3618,3620,3621,3622").style.display = 'none'; }
cultureSettings.RegionId: 0 cultureSettings.LanguageCode: TR