- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 08:23 AM
I have requirements where team A wants 250 maxlength for notes while all other teams notes will be 100..
I am creating a new variable in the client controller and I want to write a statement that meets the above condition.
I assume it would be:
c.maxLength = {
if (team == A)
set max length = 250;
else
set max length = 100;
};
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 08:52 AM - edited 05-10-2023 08:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 08:52 AM - edited 05-10-2023 08:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 11:54 AM
That worked! Awesome... Is that called ternary operator?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 11:57 AM
@asher14 - Yes you are right .It is a ternary operator that can be used to replace simple if-else statement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 12:07 PM
Thank you so much. Wow I'm learning every day!