Jump to content

check if empty, create new, make active


This topic is 2244 days old. Please don't post here. Open a new topic instead.

Recommended Posts

hello , I have a script that makes a new record on my iphone . It works well except when your making a record for the first time. it makes on "inactive" record and on "Active" record. Thos is because the status field is empty for the first record. what would i insert to check if its empty , if so new record , if not make "Inactive"  Thanks

 

 

Screen Shot 2018-02-05 at 05.00.56.png

Link to comment
Share on other sites

Something like:

If[ IsEmpty( status ) ]
	... your new record steps here
Else
	Set Field[ status ; "inactive" ]
End If

 

Link to comment
Share on other sites

This topic is 2244 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.