Guest User

Untitled

a guest
Jul 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. set len = char_len(input);
  2. set input = lower(input);
  3. set i = 0;
  4.  
  5. while (i<len) do
  6. if (mid(input,i,1) = '' or i = 0) then
  7. if (i < len) then
  8. set input = concat(
  9. left(input,i),
  10. upper(mid(input, i+1,1)),
  11. right(input, len-i-1)
  12. );
  13. end if;
  14. end if;
  15. set i = i+1;
  16. end while;
  17.  
  18. return input;
Add Comment
Please, Sign In to add comment