Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get an object only if it exists
ResourceFunction["ObjectIfExists"][obj,def] gives obj if it exists and def otherwise. |
Check if a given file exists:
| In[1]:= |
| Out[1]= |
Verify a file exists:
| In[2]:= |
| Out[3]= |
When a file does not exist, create one:
| In[4]:= |
| Out[4]= |
Add to a databin if it exists, otherwise create a new one:
| In[5]:= | ![]() |
| Out[5]= |
Deploy an API with a permissions group if one already exists:
| In[6]:= |
| Out[6]= |
| In[7]:= |
| Out[7]= |
Create a list of object references for objects that do not exist:
| In[8]:= |
| Out[8]= | ![]() |
Create only one of the object references:
| In[9]:= |
| Out[9]= |
Create a tool that finds the first existent object on the list:
| In[10]:= |
| In[11]:= |
| Out[11]= |
When an object does not exist and no default is given, Missing is used.:
| In[12]:= |
| Out[12]= |
The default does not evaluate until it is needed:
| In[13]:= | ![]() |
| Out[18]= |
In this case it evaluates:
| In[19]:= | ![]() |

| Out[19]= |
This work is licensed under a Creative Commons Attribution 4.0 International License