Hello, im developing addon, and i have to check if the variable contain word.
i have variable 'x', and it contains, lets say, "abc", and i need to check if variable 'x' contains "bc". is it possible in nasal?
TheEagle wrote in Wed May 18, 2022 9:10 pm:@wkitty: I think you got the author wrong - he doesn't want to extract a string from a known start and end / length of another string, but he wants to check if a string contains another string !
TheEagle wrote in Wed May 18, 2022 9:10 pm:@SP-NTX: You could try the builtin find() instead: https://wiki.flightgear.org/Nasal_library#find.28.29
Users browsing this forum: No registered users and 3 guests