Hi,
How can I empty all sets except 1?
I only want to empty self declared sets.
I tried it with a for loop.
However I have some trouble comparing the name of the set with a string.
Kind regards, Wiet
Solved
Loop, empty all sets except 1
Best answer by Chris Kuip
Thanks for the clarification.
Indeed, you'll need to create an additional subset. Assuming that self_declared_sets is declared as:
You can create a subset thereof as follows
And then fill it along the following lines:
Indeed, you'll need to create an additional subset. Assuming that self_declared_sets is declared as:
code:
set self_declared_sets {
subsetOf: AllIdentifiers;
index: i_sds ;
}
You can create a subset thereof as follows
code:
set operated_upon_sets {
SubsetOf: self_Declared_sets ;
}
And then fill it along the following lines:
code:
operated_upon_sets := { i_sds | not ( formatString("%e", i_sds) = "setNameToBeExcluded" ) }
Sign up
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.