Line24 works perfectly,but line 33 won't work and their almost the same it also won't print,why?
Line24:
if frame.RCurrency.Text == "null"
then
Disappear(frame.RCurrency)
Disappear(frame.RLabel)
else
Appear(frame.RCurrency)
Appear(frame.RLabel)
Line33:
if frame.TCurrency == "null"
then
print("Null")
Disapear(frame.TCurrency)
Disapear(frame.TLabel)
else
print("Not Null")
Appear(frame.TCurrency)
Appear(frame.TLabel)
The whole code is here:
frame = script.Parent
----Functions-----------
function Appear(name)
name.Visible = true
end
function Disappear(name)
name.Visible = false
end
function ChangeText(name,txt)
name.Text = txt
end
----Product stuff-------
Id = {158717210}
thumbnail = "http://www.roblox.com/Game/Tools/ThumbnailAsset.ashx?aid="..Id[1].."&fmt=png&wd=420&ht=420"
Item = game:GetService("MarketplaceService"):GetProductInfo(Id[1])
----Changing Text-------
ChangeText(frame.ProductName,Item.Name)
ChangeText(frame.ProductDescription,Item.Description)
ChangeText(frame.RCurrency,Item.PriceInRobux)
ChangeText(frame.TCurrency,Item.PriceInTickets)
----Thumbnail-----------
frame.ProductImage.Thumbnail.Image = thumbnail
----RemoveNulls--------
if frame.RCurrency.Text == "null"
then
Disappear(frame.RCurrency)
Disappear(frame.RLabel)
else
Appear(frame.RCurrency)
Appear(frame.RLabel)
-------------------------
if frame.TCurrency == "null"
then
print("Null")
Disapear(frame.TCurrency)
Disapear(frame.TLabel)
else
print("Not Null")
Appear(frame.TCurrency)
Appear(frame.TLabel)
end
end

4 comments
Fixed it try again
It didn't work.If you need the model its here http://www.roblox.com/help-item?id=160115175
Try again, sorry for the trouble.
It's ok I fixed it