To turn a Forename into the First Inital you need to create the following variables
The script will be:
name = name_var # Assuming name_var holds the name
condition_var = some_var # This variable must not be empty
# Run normally unless condition_var is empty, None, or just whitespace
if condition_var: # This checks for empty strings, None, and falsy values like 0
name_str = str(name) # Convert to string
x = len(name_str) # Get length (not really needed for this task)
name_var = name_str[0] # Get the first letter
And the field where the name will be needs to be set as
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article