23
Views
2
Comments
Reactive web Application - Check HR manager Role Exercise
Application Type
Reactive
Service Studio Version
11.6.32 (Build 13062)

Hi,

I'm doing Reactive web Application - Check HR manager Role Exercise, the logic is not difficult, but for those two assignments before two ends, I'm not sure why we need them, how about if we don't have them?

Thanks and regards

ReactivewebApplicationCheckRole.png

Rank: #292

Hi Steven,

It's a nice question. As it  is a server action, every time whenever this action is required to call, its output parameter will have their default value at first. So if you don't assign MemberAdded=False in the false branch, it will still return you false, if the current user is not HR Manager.

They have given it  just for the understanding purpose considering the learner is a beginner :). You can try by removing this assignment.

Thanks and Happy Learning!!

Rank: #52181


Hi Shweta,

I'm clear now. Thank you very much!


Regards