if(typeof RP !== 'undefined') what this means
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2019 01:07 PM
if(typeof RP !== 'undefined') what this code means

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2019 02:51 PM
It's checking to see if the variable RP has been declared before. If you do the following:
gs.info(typeof RP)
and RP doesn't exist, you will get undefined. If RP has a value, you will get the type for the variable.
Please mark this as helpful/correct if it answered your question!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2019 06:33 PM
Hi,
Where exactly you are using this line of code? Normally what I have seen "RP is being used for determining the render type on the window." and then based on that some actions are performed.
Kindly provide more info to assist further.
Regards,
Shloke
Regards,
Shloke