5 STRING AND BOOLEAN DATA TYPES
The first thing to learn about assigning data types in Batch is that Batch doesn’t allow for the assignment of data types. There’s no underlying egalitarian ethos at play, but all Batch variables are created equal. Intrinsically, there’s no difference between a variable holding a number, text, or even a boolean. However, a variable set to a number can be treated as numeric, and I’ll focus on those data types in the next chapter.
In this chapter, after an overview of all Batch data types, you’ll learn about string and character variables. You’ll also explore strings further with methods for substringing and ...
Get The Book of Batch Scripting now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.