SexScripts : Reminder for Groovy, Java, etc. about slashes : / and \ - https://ss.deviatenow.com:443/viewtopic.php?f=4&t=396 Page 1 of 1

Reminder for Groovy, Java, etc. about slashes : / and \

doti [ Sat Mar 29, 2014 12:29 pm ]

About slashes / and backslashes \ in scripts :

Division
/
Code:
def x = 4 / y


file path
/ (yes even with Ms Windows)
Code:
useFile("mfolder/test.odt")


Special characters in strings
\
Code:
def s = "A quote, an apostroph, a backslash and a new line : \" \' \\ \n "

Page 1 of 1 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011