Variable properties clarification

Hi All,

Please let me know the answer of below question:

Which of the following properties are associated with variables?

  1. They pass data between activities.
  2. They have directions like In, Out, In/Out
  3. They require a defined scope.
  4. There must be at least one activity in the designer panel to create variables.

I have chosen 1 & 3 option.

Please correct me if i ma wrong.

Thanks!!!

Hi @himanshu-s

The 1&3 options are correct…

→ It can be used to pass output of one activity to input for another activity.
→ every variable has defined scope, we can check the option in the variables panel.

2&4 are incorrect.

→ variable doesn’t have the directions, the directions is for arguments.
→ For creating a variable we cannot drag and drop an activity to designer panel and create a variable. We can create variables in the variable panel itself.

Hope it helps!!

Hi @himanshu-s

Welcome to Community!!

Options 1, 3 & 4 are Correct

Regards,

Hi @himanshu-s

Option1 and Option3 are correct
→ The variables are used to pass the data between activities.
→ The scope plays the crucial role because the variable can be used to pass the data within the defined scope of the variable.

In the case as shown as below then Option4 is also correct.
→ Without a single activity in the designer panel the variable can’t get created.

->There must be at least single activity like sequence to create a variable.

Regards

1 Like

1, 3 and 4 are correct. The question is trying to confuse you between variables and arguments. 2 applies to arguments, not variables.

The reason 4 is correct is because of 3. You have to define a scope for a variable, and a scope means a Sequence activity within which the variable is created.

1 Like

That’s not what 4 says. It’s not asking about how/where you create variables. 4 says there must be an activity in your automation before you can create variables, and this is correct. Because without at least one Sequence activity, there is nothing to scope the variable to.

1 Like

Actually I disagree with option A.
Yes they ‘can’ be used to pass data in between activities, but they might as well not do that. (Would make them completely redundant, but I can create a variable b_IsItRaining with a default to false and then not use the variable. Useless I know, but that does make answer 1 tricky, and possibly false :slight_smile: )

So actually it is a bad question! :wink:

It doesn’t say they ONLY pass data between activities.

I know I know :slight_smile:
Just wanted to be a smart-ass evil grin

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.