Skip to content

disjunctions with list.Contains() doesn't work properly #3386

Closed Answered by gulnarrra
gulnarrra asked this question in Q&A
Discussion options

You must be logged in to vote

The answer is:
When calling the function inside of list, function returns result with type "list":

["SomeStruct"]: List1: {
  if SomeConf.Conf1 { list.Contains(100) } 
  ...
}

When calling the function outside of list, result will be "bool" as expected:

if SomeConf.Conf1 { 
OneExists: (list.Contains(SomeStruct.List1,100) & true
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gulnarrra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant