escept Posted August 19, 2017 Report Share Posted August 19, 2017 Is it possible to get if the fraudwarning includes "This item has been renamed"? I tried item.fraud.includes, item.fraudwarning.includes, item.warning.includes, item.info.includes, but none of them worked. Is it possible to do it? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted August 19, 2017 Report Share Posted August 19, 2017 The item.fraudwarnings array contains the item's fraud warnings. If you want to see if there an exists an item in that array which literally matches "This item has been renamed", you can use item.fraudwarnings.includes("This item has been renamed") The problem is that typically, that isn't the exact text. Usually items which have been renamed also include their original names in the fraud warning. In this case, you'll need to loop the array and use includes on each entry. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.