Search the Community
Showing results for tags 'ifelse'.
hi everyone, im having a problem spotting whats wrong with this code. what im doing is checking some input from a user of type 'folder'. if its got slashes on the front i remove. if its got slashes on the end i remove. and add one slash. it works up to here. then i check to see if the actually input a value for folder. they dont have to. in this case the value will just be '/'. as i added the slash eailier. if i leave folder blank this works too. if i input something i get a fail. i dont beleive the pregmatch is failing as i've used the same pregmatch on other types o