Jump to content

Search the Community

Showing results for tags 'strmatch'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
    • Marketplace
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering
    • Compositing
    • Games
    • Tools (HDA's etc.)
  • Coders Corner
    • HDK : Houdini Development Kit
    • Scripting
    • Shaders
  • Art and Challenges
    • Finished Work
    • Work in Progress
    • VFX Challenge
    • Effects Challenge Archive
  • Systems and Other Applications
    • Other 3d Packages
    • Operating Systems
    • Hardware
    • Pipeline
  • od|force
    • Feedback, Suggestions, Bugs

Found 1 result

  1. Checking index 2 of string.

    Hi, Scripting is a little new to me, so hopefully this has an easy answer. I am looking to check a string for a certain number in a specific position. example variable: B1567 in the example's case I would like to check if the third character is 6. (in the example this is false and would return a 0) I've been tinkering with strmatch: strmatch("**6**", "`chs('../ColorMaster/cl_master')`") However, this checks if the string has a 6 anywhere in the string. resulting in a incorrect 1) How can I adjust the strmatch to only check the third character? Any and all help would be appreciated! With kind regards, Thomas
×