Card Exchange Producer Script for turning Forename to Initial

Modified on Tue, 4 Mar at 2:18 PM


To turn a Forename into the First Inital you need to create the following variables



image-20250205-162327.png

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

image-20250205-162124.png

image-20250205-162138.png

And the field where the name will be needs to be set as

image-20250205-162428.png


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article