I'm trying to add in a Guild Bank deposit every 9k gold to the Grim Batol Heavy profile;
</If>
<CustomBehavior File="Misc\RunLua" Lua="
if GuildBankFrame:IsVisible()==true then
MyMoney = GetMoney();
DepositGuildBankMoney(MyMoney);
print("|cFF3399FF[Azyul]|r: Depositing "..GetCoinTextureString(MyMoney));
else
print("|cFF3399FF[Azyul]|r: Your mobile guild bank wasn't detected, continuing run."

end" />
<CustomBehavior File="Misc\RunLua" Lua="
if GuildBankFrame:IsVisible()==true then
print("|cFF3399FF[Azyul]|r: Depositing Netherweave Cloth."

for b=0,4 do for s=1,GetContainerNumSlots(b)
do local n=GetContainerItemLink(b,s)
if n and strfind(n,"21877"

then
UseContainerItem(b,s)
end
end
end
end" />
</If>
I recieve an error saying something is wrong with the while and the if. If possible can you add in so it also deposits Embersilk Cloth