Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:34:39+00:00 2026-06-06T18:34:39+00:00

I am trying to learn about the ScriptProperties object in GAS. I tried setting

  • 0

I am trying to learn about the ScriptProperties object in GAS.

I tried setting a property to a value of null, and I get an error.

I can understand if like JavaScript, setting a value of null undefines
that property.

But why are you disallowing this value?
It seems reasonable (to me) to allow a script to undefine a script (or user) property.

Another question about ScriptProperties (and I assume the same holds for UserProperties),
Why when I display the value of an undefined property it displays as “undefined”,
but when I try to test for the value “undefined” (without quotes) it does not match?

It seems, that if you are going to introduce a new special attribute value of “undefined”, it should be consistent through out the system. If by “undefined” you mean null, well then
why not display it with the word “null”?

I am just trying to learn about this new environment.
All help is appreciated. Thanks for your support.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:34:41+00:00Added an answer on June 6, 2026 at 6:34 pm

    There is an open feature request to add support for removing properties, which you can star for updates.

    The value “undefined” is not a string but rather a special value built in to JavaScript. You can refer to it like “null”:

    if (foo == undefined) { ...
    

    More information is available on the w3schools page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to learn about the Jini API in java, but can't get
I've been trying to learn about metaclasses in Python. I get the main idea,
I am trying to learn about all possible conditionals that can be used on
I am trying to learn about combinators and I am having trouble understand the
I'm trying to learn about singleton classes and how they can be used in
I'm trying to learn about b-tree and every source I can find seem to
I was trying to learn about different states of objects in Hibernate. I tried
I am trying to learn about log4j so I just tried to do something
I'm trying to learn about makefile, mainly to understand a makefile that I'm using,
I am trying to learn about structs in C, but i do not understand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.