Forum Discussion
streetcredit
5 years agoChannel Surfer
Appreciate the response! Still working through my understanding of how it works. Looks like lines 104-105 are part of a code block and would break code flow if they were deleted. Is there a suggestion for what I should replace line 104-124 with since that looks to be the entire block related to my problem? Or am I missing something? I appreciate your help! You have no idea!
RokuJonathanD
5 years agoCommunity Moderator
Actually it should have been just line 105 that gets removed...and the code block would be as follows:
for each product in catalog.GetChildren(-1, 0) ' if trial has been already used, then show only products without trial if product.freeTrialQuantity = 0 subscriptions.Push(product.name + " " + product.cost) m.activeCatalogItems.Push({ code: product.code, name: product.name }) end if else ' if trial hasn't been already used then show only products with trial if product.freeTrialQuantity > 0 subscriptions.Push(product.name + " " + product.cost) m.activeCatalogItems.Push({ code: product.code, name: product.name })
end if
end if
end for