User bio
404 bio not found
Member since Mar 22, 2023
Posts:
Replies:
Additionally, non SQL, there is a built in function for this of
if ##class(Security.Users).Exists("John") {
// user exists
}
which confirms if the IRIS user exists using the users username (here, assuming username of John). Documentation on the Security.Users docs page.
This worked perfectly, thank you!
Certifications & Credly badges:
Global Masters badges:
![DC Commenter](https://community.intersystems.com/sites/default/files/badges/dc_commenter_1.png)
![DC Problem Solver](https://community.intersystems.com/sites/default/files/badges/dc_problem_solver_1.png)
![InterSystems Researcher](https://community.intersystems.com/sites/default/files/badges/researcher.png)
![The First Tech Quiz](https://community.intersystems.com/sites/default/files/badges/quiz_question.png)
Followers:
Following:
Hannah has not followed anybody yet.
Hi Preedhi,
You could use $ListUpdate to update your list in the for loop as follows.
set mylist = $ListBuild() for i = 1:1:5 { set item = "item"_i set mylist = $ListUpdate(mylist,i,item) } zw mylist
This returns
USER>zw mylist mylist=$lb("item1","item2","item3","item4","item5")